Common Model Settings
When integrating multiple providers, you usually want a single configuration pattern and low switching cost. Agently v4 uses OpenAICompatible for all providers with base_url + api_key + model.
General template
python
from agently import Agently
Agently.set_settings("OpenAICompatible", {
"base_url": "https://api.example.com/v1",
"api_key": "YOUR_API_KEY",
"model": "your-model-name"
})Model index
- Global: OpenAI / Claude / Gemini / Groq
- China: DeepSeek / Qwen / ERNIE / Kimi / Doubao / SiliconFlow / MiniMax / GLM
- Local deployment: Ollama Local Model
- API compatibility: OpenAI API Request Format Guide