Expand description
Convenience constructors for OpenAI-compatible providers.
Each provider uses the same wire format as OpenAI but with a different
base URL. The functions in this module pre-configure OpenAiConfig and
OpenAiEmbeddingsConfig with the correct endpoint.
Functionsยง
- cohere_
chat_ model - Create a Cohere chat model.
- cohere_
config - Create an OpenAI-compatible config for Cohere.
- cohere_
embeddings - Create Cohere embeddings.
- cohere_
embeddings_ config - Create an OpenAI-compatible embeddings config for Cohere.
- deepseek_
chat_ model - Create a DeepSeek chat model.
- deepseek_
config - Create an OpenAI-compatible config for DeepSeek.
- fireworks_
chat_ model - Create a Fireworks AI chat model.
- fireworks_
config - Create an OpenAI-compatible config for Fireworks AI.
- groq_
chat_ model - Create a Groq chat model.
- groq_
config - Create an OpenAI-compatible config for Groq.
- huggingface_
chat_ model - Create a HuggingFace chat model.
- huggingface_
config - Create an OpenAI-compatible config for HuggingFace Inference API.
- huggingface_
embeddings - Create HuggingFace embeddings.
- huggingface_
embeddings_ config - Create an OpenAI-compatible embeddings config for HuggingFace.
- mistral_
chat_ model - Create a Mistral AI chat model.
- mistral_
config - Create an OpenAI-compatible config for Mistral AI.
- mistral_
embeddings - Create Mistral AI embeddings.
- mistral_
embeddings_ config - Create an OpenAI-compatible embeddings config for Mistral AI.
- openrouter_
chat_ model - Create an OpenRouter chat model.
- openrouter_
config - Create an OpenAI-compatible config for OpenRouter.
- together_
chat_ model - Create a Together AI chat model.
- together_
config - Create an OpenAI-compatible config for Together AI.
- xai_
chat_ model - Create an xAI chat model.
- xai_
config - Create an OpenAI-compatible config for xAI.