Skip to main content

Module compatible

Module compatible 

Source
Expand description

Generic OpenAI-compatible model_provider. Most LLM APIs follow the same /v1/chat/completions format. This module provides a single implementation that works for all of them.

Structs§

OpenAiCompatibleModelProvider
A model_provider that speaks the OpenAI-compatible chat completions API. Used by: Venice, Vercel AI Gateway, Cloudflare AI Gateway, Moonshot, Synthetic, OpenCode Zen, OpenCode Go, Z.AI, GLM, MiniMax, Bedrock, Qianfan, Groq, Mistral, xAI, etc.

Enums§

AuthStyle
How the model_provider expects the API key to be sent.