Files
ai-agent-book/chapter4/active-tool-discovery/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

16 lines
768 B
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 后填入你的 key
# 本实验默认用 OpenAIchat + embeddings 均用 OpenAI
# 若暂时没有 key,可先跑离线机制自检:python demo.py --offline(本地嵌入 + mock 模型,无需下面的 key)
OPENAI_API_KEY=your-openai-api-key
# 统一兜底:若没有 OPENAI_API_KEY,但设置了 OPENROUTER_API_KEY,则对话(chat)自动
# 改走 OpenRouter(模型映射到 openai/gpt-5.6-luna 等);因 OpenRouter 无 embeddings
# 接口,工具检索会退用本地哈希嵌入。
# OPENROUTER_API_KEY=your-openrouter-api-key
# 可选:对话模型,默认 gpt-5.6-luna
# MODEL=gpt-5.6-luna
# 可选:嵌入模型,默认 text-embedding-3-small(仅 OpenAI 直连路径使用)
# EMBED_MODEL=text-embedding-3-small