Skip to main content

Module openai

Module openai 

Source
Expand description

OpenAI-compatible chat-completions adapter.

Targets the /chat/completions shape that OpenAI, Azure (via gateway), GLM (Zhipu), DeepSeek, Moonshot, Together, Ollama and many others speak. The only thing that varies is the base URL + model name + API key, which is all driven by config.

Structsยง

OpenAiProvider
RetryPolicy
Retry policy for transient failures (network timeouts, 5xx errors).