OpenAI-Compatible Integration
Cerebras also exposes an OpenAI-compatible interface, so you can use it with tools and libraries built for the OpenAI API.Basic Usage
TheCerebrasOpenAI class provides an OpenAI-style interface for Cerebras models. First, install the required packages:
Configuration Options
TheCerebrasOpenAI class accepts the following parameters:
CerebrasOpenAI also supports the parameters of OpenAI.