File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
src/content/docs/ai-gateway/providers Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff 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- ```
You can’t perform that action at this time.
0 commit comments