Cerebras OpenAI

Run Cerebras models through the OpenAI-compatible endpoint: streaming, tools, structured output, storage, and knowledge.

ExampleDescription
Cerebras OpenAI BasicCompare synchronous, asynchronous, and streaming calls through Cerebras' OpenAI-compatible endpoint.
DBStore CerebrasOpenAI agent sessions in Postgres with history added to context.
KnowledgeQuery a PgVector knowledge base built from a PDF with a CerebrasOpenAI agent.
Cerebras OpenAI OSS GPTUse gpt-oss-120b on the Cerebras OpenAI-compatible endpoint with WebSearchTools.
Cerebras OpenAI Structured OutputReturn a typed MovieScript from a CerebrasOpenAI agent with output_schema.
Cerebras OpenAI Tool UseCall WebSearchTools from a CerebrasOpenAI agent in sync and async modes.