跳转到主要内容

提供者值

使用 azure_openaillm.profiles.<name>.provider.

示例配置文件

{
  "llm": {
    "profiles": {
      "default": {
        "provider": "azure_openai",
        "model": "gpt-4.1-mini",
        "prompt": "Translate from {{source}} to {{target}}:\n\n{{input}}"
      }
    }
  }
}

必需的环境变量

# Example: https://<resource>.openai.azure.com/openai/v1
export AZURE_OPENAI_BASE_URL="https://<resource>.openai.azure.com/openai/v1"
export AZURE_OPENAI_API_KEY="your-azure-openai-api-key"