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
38 lines
1.5 KiB
Plaintext
38 lines
1.5 KiB
Plaintext
# 复制为 .env 后填入你的 key(demo.py 会自动加载)
|
||
|
||
# ===== LLM 服务(默认 openai;也支持 moonshot、dashscope/qwen/bailian、ark)=====
|
||
LLM_PROVIDER=openai
|
||
|
||
# OpenAI(默认)
|
||
OPENAI_API_KEY=your-openai-api-key
|
||
# 可选:自定义模型 / 网关
|
||
LLM_MODEL=gpt-5.6-luna
|
||
# OPENAI_BASE_URL=https://your-gateway/v1
|
||
|
||
# Moonshot(LLM_PROVIDER=moonshot;默认模型为推理模型 kimi-k3,代码会自动用 temperature=1 且 max_tokens>=2048)
|
||
MOONSHOT_API_KEY=your-moonshot-api-key
|
||
# LLM_MODEL=kimi-k3
|
||
|
||
# Alibaba Cloud Model Studio / Bailian (Qwen)
|
||
# DASHSCOPE_API_KEY=your-dashscope-api-key
|
||
# LLM_PROVIDER=dashscope
|
||
# LLM_MODEL=qwen3.7-plus
|
||
# DASHSCOPE_BASE_URL=https://dashscope-intl.aliyuncs.com/compatible-mode/v1
|
||
|
||
# 火山方舟 ARK(LLM_PROVIDER=ark,LLM_MODEL 需填推理接入点 ID)
|
||
ARK_API_KEY=xxxx
|
||
# LLM_MODEL=ep-xxxxxxxx
|
||
|
||
# ===== OpenRouter 通用兜底 =====
|
||
# 当没有配置直连的 OPENAI_API_KEY(且未使用 moonshot/ark provider)时,
|
||
# 只要设置了 OPENROUTER_API_KEY,demo.py 会自动改走 OpenRouter:
|
||
# base_url=https://openrouter.ai/api/v1,并把模型名映射成 provider/model 形式
|
||
# (gpt-* -> openai/…、claude-* -> anthropic/claude-opus-4.8、含 "/" 的原样透传)。
|
||
# 也可显式 LLM_PROVIDER=openrouter 强制使用。
|
||
# OPENROUTER_API_KEY=your-openrouter-api-key
|
||
# LLM_MODEL=openai/gpt-5.6-luna
|
||
|
||
# ===== 时间轴加速(可选)=====
|
||
# 1 个"模拟秒"对应的真实秒数,默认 0.4(2.5 倍速)。数值越小演示越快。
|
||
FLUX_TICK_REAL=0.4
|