6
71. Sign up for [Cerebras](https://cloud.cerebras.ai/)
82. Get a Cerebras API Key
93. Save it in a [Val Town environment variable](https://www.val.town/settings/environment-variables) called `CEREBRAS_API_KEY`
10
11# Todos
210 } catch (error) {
211 Toastify({
212 text: "We may have hit our Cerebras Usage limits. Try again later or fork this and use your own API key.",
213 position: "center",
214 duration: 3000,
1022 };
1023 } else {
1024 const client = new Cerebras({ apiKey: Deno.env.get("CEREBRAS_API_KEY") });
1025 const completion = await client.chat.completions.create({
1026 messages: [
1146 <meta name="viewport" content="width=device-width, initial-scale=1.0">
1147 <title>CerebrasCoder</title>
1148 <link rel="preconnect" href="https://fonts.googleapis.com" />
1149 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1150 <link
1151 href="https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap"
1152 rel="stylesheet"
1153 />
210 } catch (error) {
211 Toastify({
212 text: "We may have hit our Cerebras Usage limits. Try again later or fork this and use your own API key.",
213 position: "center",
214 duration: 4000,
1022 };
1023 } else {
1024 const client = new Cerebras({ apiKey: Deno.env.get("CEREBRAS_API_KEY") });
1025 const completion = await client.chat.completions.create({
1026 messages: [
1146 <meta name="viewport" content="width=device-width, initial-scale=1.0">
1147 <title>CerebrasCoder</title>
1148 <link rel="preconnect" href="https://fonts.googleapis.com" />
1149 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1150 <link
1151 href="https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap"
1152 rel="stylesheet"
1153 />
6
71. Sign up for [Cerebras](https://cloud.cerebras.ai/)
82. Get a Cerebras API Key
93. Save it in a [Val Town environment variable](https://www.val.town/settings/environment-variables) called `CEREBRAS_API_KEY`
10
11# Todos
6
71. Sign up for [Cerebras](https://cloud.cerebras.ai/)
82. Get a Cerebras API Key
93. Save it in a [Val Town environment variable](https://www.val.town/settings/environment-variables) called `CEREBRAS_API_KEY`
10
11# Todos
1022 };
1023 } else {
1024 const client = new Cerebras({ apiKey: Deno.env.get("CEREBRAS_API_KEY") });
1025 const completion = await client.chat.completions.create({
1026 messages: [
1146 <meta name="viewport" content="width=device-width, initial-scale=1.0">
1147 <title>CerebrasCoder</title>
1148 <link rel="preconnect" href="https://fonts.googleapis.com" />
1149 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1150 <link
1151 href="https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap"
1152 rel="stylesheet"
1153 />
6
71. Sign up for [Cerebras](https://cloud.cerebras.ai/)
82. Get a Cerebras API Key
93. Save it in a [Val Town environment variable](https://www.val.town/settings/environment-variables) called `CEREBRAS_API_KEY`
10
11# Todos
1022 };
1023 } else {
1024 const client = new Cerebras({ apiKey: Deno.env.get("CEREBRAS_API_KEY") });
1025 const completion = await client.chat.completions.create({
1026 messages: [
1146 <meta name="viewport" content="width=device-width, initial-scale=1.0">
1147 <title>CerebrasCoder</title>
1148 <link rel="preconnect" href="https://fonts.googleapis.com" />
1149 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1150 <link
1151 href="https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap"
1152 rel="stylesheet"
1153 />
1025 };
1026 } else {
1027 const client = new Cerebras({ apiKey: Deno.env.get("CEREBRAS_API_KEY") });
1028 const thinkingCompletion = await client.chat.completions.create({
1029 messages: [
1033 another AI to code websites. You DO NOT code yourself. You just explain the plan.
1034 You can include inline code if you want to explain how to do something.
1035 Be sure to use APIs that don't require keys and that you know well. Explain the structure of the API.
1036 `,
1037 },
1170 <meta name="viewport" content="width=device-width, initial-scale=1.0">
1171 <title>CerebrasCoder</title>
1172 <link rel="preconnect" href="https://fonts.googleapis.com" />
1173 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1174 <link
1175 href="https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap"
1176 rel="stylesheet"
1177 />
6
71. Sign up for [Cerebras](https://cloud.cerebras.ai/)
82. Get a Cerebras API Key
93. Save it in a [Val Town environment variable](https://www.val.town/settings/environment-variables) called `CEREBRAS_API_KEY`
10
11# Todos