Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
# 实验 7-7 环境变量示例
|
||
#
|
||
# 只有 `--source llm`(LLM 评判对战)需要 API Key;
|
||
# simulate / arena / elo / leaderboard / pipeline 均为纯离线,无需任何 Key。
|
||
#
|
||
# 用法:把本文件复制为 .env 并填入真实 Key,或直接 `export` 到 shell。
|
||
|
||
# --- 评判后端 1:官方 Anthropic(默认优先)---
|
||
# 有此 Key 时 --judge-backend auto 会走官方 Anthropic SDK。
|
||
ANTHROPIC_API_KEY=your-anthropic-api-key
|
||
|
||
# --- 评判后端 2:OpenRouter 兜底 ---
|
||
# 当 ANTHROPIC_API_KEY 缺失或失效时使用;用 OpenAI 兼容 SDK 指向 OpenRouter。
|
||
# 内部 Claude 名字会自动映射为 OpenRouter id:
|
||
# claude-opus-4-8 -> anthropic/claude-opus-4.8
|
||
# claude-haiku-4-5 -> anthropic/claude-haiku-4.5
|
||
# claude-sonnet-4-6 -> anthropic/claude-sonnet-4.6
|
||
# 已含 '/' 的 id(如 openai/gpt-5.6-luna)原样透传。
|
||
#
|
||
# 强制走 OpenRouter:
|
||
# python cli.py battle --source llm --judge-backend openrouter \
|
||
# --judge-model claude-opus-4-8 \
|
||
# --candidate-models anthropic/claude-haiku-4.5 openai/gpt-5.6-luna
|
||
OPENROUTER_API_KEY=your-openrouter-api-key
|