Files
ai-agent-book/chapter7/elo-leaderboard/env.example
T
liqiang b119135836
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
ai-agent-book 精选快照(<2MB 代码与文档,来自 github.com/bojieli/ai-agent-book)
2026-08-20 13:12:50 +00:00

25 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 实验 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
# --- 评判后端 2OpenRouter 兜底 ---
# 当 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