Providers
openai
OpenAI and Azure OpenAI
setup
# ~/.baihu/config.toml
default_provider = "openai"
default_model = "gpt-4o"
api_key = "sk-..."
azure openai
use the custom provider with your azure endpoint:
default_provider = "custom:https://your-resource.openai.azure.com/openai/deployments/your-deployment/chat/completions?api-version=2024-02-01"
api_key = "your-azure-key"
models
| model | description |
|---|---|
gpt-4o | multimodal, 128k context |
gpt-4-turbo | fast, 128k context |
gpt-3.5-turbo | budget option |