Skip to main content

Module openai_compat

Module openai_compat 

Source
Expand description

OpenAI Chat Completions compatible provider.

One implementation covers OpenAI, xAI, Groq, Cerebras, OpenRouter, Mistral, DeepSeek, MiniMax, HuggingFace, Kimi, and any other provider that implements the OpenAI Chat Completions API.

Behavioral differences are handled via OpenAiCompat flags in ModelConfig.

Structs§

OpenAiCompatProvider
Unit struct — no state. All logic in the StreamProvider impl.