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
28 lines
1.7 KiB
Plaintext
28 lines
1.7 KiB
Plaintext
# 复制为 .env 或直接 export。TTS 合成与 Whisper 回译必须走 OpenAI 直连,需下面这个 key。
|
||
# 默认 LLM 评审模型为 gpt-5.6-luna(当前廉价旗舰)。
|
||
OPENAI_API_KEY=your-openai-api-key
|
||
|
||
# 可选:LLM Rubric 与 `--gemini` 直接音频评审的 OpenRouter 回退(TTS/Whisper 不行)。
|
||
# 音频路径仍发送两段真实 MP3,不会退化成文本转写。gpt-5.x 直连 OpenAI 需组织实名认证。
|
||
# OPENROUTER_API_KEY=your-openrouter-api-key
|
||
# TTS_AUDIO_JUDGE_MODEL=google/gemini-3.5-flash
|
||
|
||
# 可选:用 `python demo.py --gemini` 让 Google Gemini 直连听音频时设置;若不设置,
|
||
# 也可以只用上面的 OPENROUTER_API_KEY 走支持 audio 输入的 Gemini 路由。
|
||
# 默认 Gemini 评审模型为 gemini-3.5-flash(已验证支持音频输入)。
|
||
# 默认(不加 --gemini)评审是 Whisper 回译 + gpt-5.6-luna Rubric,无需此 key。
|
||
# GEMINI_API_KEY=your-gemini-key
|
||
|
||
# 可选:Gemini/OpenRouter 不可用时,用 Mistral Voxtral 直接听两段 MP3。
|
||
# MISTRAL_API_KEY=your-mistral-key
|
||
# TTS_MISTRAL_AUDIO_JUDGE_MODEL=voxtral-small-latest
|
||
|
||
# 可选:跨服务商横向对比时(`--providers openai,elevenlabs,minimax,...`)按需配置。
|
||
# 未配置的 provider 对应的行会被记为失败,不影响整表。逐项见 `python demo.py --list-providers`。
|
||
# ELEVENLABS_API_KEY=your-elevenlabs-key
|
||
# FISH_API_KEY=your-fishaudio-key # 亦兼容别名 FISHAUDIO_API_KEY
|
||
# MINIMAX_API_KEY=your-minimax-key # Bearer 鉴权,model 默认 speech-2.8-hd
|
||
# MINIMAX_REGION=global # 可选:global->api.minimax.io,cn->api.minimaxi.com
|
||
# DOUBAO_APP_ID=your-volcengine-app-id
|
||
# DOUBAO_ACCESS_TOKEN=your-volcengine-access-token
|