The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Update model path and documentation for cerebras API call (#8862)
Mehdi1226d318fcb9
diff --git a/docs/my-website/docs/providers/cerebras.md b/docs/my-website/docs/providers/cerebras.mdindex 4fabeb31cbc..33bef5e1079 100644--- a/docs/my-website/docs/providers/cerebras.md+++ b/docs/my-website/docs/providers/cerebras.md@@ -23,14 +23,16 @@ import osos.environ['CEREBRAS_API_KEY'] = ""response = completion(- model="cerebras/meta/llama3-70b-instruct",+ model="cerebras/llama3-70b-instruct",messages=[{"role": "user",- "content": "What's the weather like in Boston today in Fahrenheit?",+ "content": "What's the weather like in Boston today in Fahrenheit? (Write in JSON)",}],max_tokens=10,++ # The prompt should include JSON if 'json_object' is selected; otherwise, you will get error code 400.response_format={ "type": "json_object" },seed=123,stop=["\n\n"],@@ -50,16 +52,18 @@ import osos.environ['CEREBRAS_API_KEY'] = ""response = completion(- model="cerebras/meta/llama3-70b-instruct",+ model="cerebras/llama3-70b-instruct",messages=[{"role": "user",- "content": "What's the weather like in Boston today in Fahrenheit?",+ "content": "What's the weather like in Boston today in Fahrenheit? (Write in JSON)",}],stream=True,max_tokens=10,- response_format={ "type": "json_object" },++ # The prompt should include JSON if 'json_object' is selected; otherwise, you will get error code 400.+ response_format={ "type": "json_object" },seed=123,stop=["\n\n"],temperature=0.2,