将 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_BASE_URL
https://api.anthropic.com/v1
此页面对您有帮助吗?