提供者值
在llm.profiles.<name>.provider 中使用 anthropic。
示例个人资料
必需的环境变量
可选环境变量
ANTHROPIC_BASE_URL 默认为 https://api.anthropic.com/v1。Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
将 Anthropic 配置为用于生成翻译的 LLM 提供商。
llm.profiles.<name>.provider 中使用 anthropic。
{
"llm": {
"profiles": {
"default": {
"provider": "anthropic",
"model": "claude-sonnet-4-5",
"prompt": "Translate from {{source}} to {{target}}:\n\n{{input}}"
}
}
}
}
export ANTHROPIC_API_KEY="your-anthropic-api-key"
ANTHROPIC_API_KEY="your-anthropic-api-key"
ANTHROPIC_BASE_URL 默认为 https://api.anthropic.com/v1。此页面对您有帮助吗?
