Files
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
869 B
Plaintext

# 复制本文件为 .env 并填入你的真实密钥(demo.py 会自动加载)
# ===== 默认使用 OpenAI =====
OPENAI_API_KEY=your-openai-api-key
# 默认模型为 gpt-5.6-luna,可覆盖:
# LLM_MODEL=gpt-5.6-luna
# ===== 统一兜底:OpenRouter =====
# 若上面 provider 的 Key 缺失,但设置了 OPENROUTER_API_KEY,则自动改走
# OpenRouter,并把模型名映射到 openai/gpt-5.6-luna 等。
# OPENROUTER_API_KEY=your-openrouter-api-key
# ===== 可选:切换到国内兼容 OpenAI 接口的提供商 =====
# LLM_PROVIDER 取值:openai(默认) / moonshot / ark / openrouter
# LLM_PROVIDER=moonshot
# MOONSHOT_API_KEY=your-moonshot-api-key
# LLM_PROVIDER=ark
# ARK_API_KEY=your-ark-key
# ARK_MODEL=your-ark-endpoint-id # 火山方舟需填推理接入点 ID
# 采样温度(默认 0,保证结果可复现)
# LLM_TEMPERATURE=0