Skip to content

Commit 9f5abc0

Browse files
removed example
1 parent 346734e commit 9f5abc0

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/content/docs/ai-gateway/providers/cerebras.mdx

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,3 @@ curl -X POST https://gateway.ai.cloudflare.com/v1/ACCOUNT_TAG/GATEWAY/cerebras/c
3838
]
3939
}'
4040
```
41-
42-
### Use Cerebras through Cerebras Cloud SDK with JavaScript
43-
44-
```js title="JavaScript"
45-
import Cerebras from "@cerebras/cerebras_cloud_sdk";
46-
47-
const client = new Cerebras({
48-
apiKey: process.env["CEREBRAS_API_KEY"], // This is the default and can be omitted
49-
});
50-
51-
async function main() {
52-
const completionCreateResponse = await client.chat.completions.create({
53-
messages: [{ role: "user", content: "Why is fast inference important?" }],
54-
model: "llama3.1-8b",
55-
});
56-
57-
console.log(completionCreateResponse);
58-
}
59-
60-
main();
61-
```

0 commit comments

Comments
 (0)