提供者值
在llm.profiles.<name>.provider 中使用 azure_openai。
将 Azure OpenAI 配置为翻译生成的 LLM 提供程序。
llm.profiles.<name>.provider 中使用 azure_openai。
{
"llm": {
"profiles": {
"default": {
"provider": "azure_openai",
"model": "gpt-4.1-mini",
"prompt": "Translate from {{source}} to {{target}}:\n\n{{input}}"
}
}
}
}
export AZURE_OPENAI_BASE_URL="https://<resource>.openai.azure.com/openai/v1"
export AZURE_OPENAI_API_KEY="your-azure-openai-api-key"
此页面对您有帮助吗?