Files
ai-agent-book/chapter7/model-benchmark/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

29 lines
1.3 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.
# 复制为 .env 或直接 export 到环境变量。
# 只需填你手上有的 key,未填的提供商会被自动跳过。
# OpenAI 官方(用于 gpt-5.6-luna / kimi-k3 / doubao-1.6
OPENAI_API_KEY=your-openai-api-key
# 原生 Claude / Gemini 适配器(完整 campaign 可直接横向比较,不经中转)
ANTHROPIC_API_KEY=
GEMINI_API_KEY=
# OpenRouter 回退:未设置 OPENAI_API_KEY 时,OpenAI 原生条目自动改走 OpenRouter
# (模型名映射 gpt-* -> openai/*)。gpt-5.x 直连需组织实名认证,只要设置了本 key
# 就会优先走 OpenRouter。
# OPENROUTER_API_KEY=your-openrouter-api-key
# 月之暗面 Kimibase_url 已在代码中配置为 https://api.moonshot.cn/v1
MOONSHOT_API_KEY=your-moonshot-api-key
# 字节火山方舟 / 豆包(base_url 已配置为 https://ark.cn-beijing.volces.com/api/v3
ARK_API_KEY=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
# DeepSeek 官方与 SiliconFlow。完整实验使用同一个 DeepSeek-V4-Flash
# 权重族做“官方端点 vs 第三方端点”的受控提供商对比。
DEEPSEEK_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxx
SILICONFLOW_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxx
# 完整实验的模型、负载和三类 token 单价统一固定在 campaign_config.json。
# 不要把凭据写入该 JSON;这里只通过环境变量注入。