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
15 lines
576 B
Plaintext
15 lines
576 B
Plaintext
# 复制本文件为 .env 并填入你的密钥
|
||
# 必填其一:OpenAI API Key(直连)
|
||
OPENAI_API_KEY=your-openai-api-key
|
||
|
||
# 通用兜底:未配置 OPENAI_API_KEY 时自动改走 OpenRouter(route openai/gpt-4o-mini)。
|
||
# 仅当把 MODEL 换成 gpt-5.x 这类需组织实名认证的模型、且设置了本 key 时,
|
||
# 才会优先走 OpenRouter。
|
||
# OPENROUTER_API_KEY=your-openrouter-api-key
|
||
|
||
# 可选:切换到兼容 OpenAI 协议的服务端点
|
||
# OPENAI_BASE_URL=https://api.openai.com/v1
|
||
|
||
# 可选:默认模型(不填则用 gpt-4o-mini)
|
||
MODEL=gpt-4o-mini
|