BaihuBaihu
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

modeldescription
gpt-4omultimodal, 128k context
gpt-4-turbofast, 128k context
gpt-3.5-turbobudget option

On this page