feat: harden article summary timeout and fallback
This commit is contained in:
@@ -300,6 +300,7 @@ python scripts/apply_term_suggestions.py ^
|
||||
- `ARTICLE_SUMMARY_LLM_API_KEY`
|
||||
|
||||
如果这些变量未设置,单篇总结会回退使用主流程中的 `LLM_*` / `OPENAI_*` 配置。
|
||||
如果显式指定 DeepSeek 作为单篇总结模型且请求超时或失败,当前实现会自动再用主流程默认模型配置重试一次。
|
||||
|
||||
示例(PowerShell 风格):
|
||||
|
||||
@@ -316,7 +317,8 @@ set ARTICLE_SUMMARY_LLM_MODEL=deepseek-chat
|
||||
python scripts/run_article_summaries.py ^
|
||||
--extracted outputs/freshrss/extracted/freshrss.extracted.json ^
|
||||
--ids 12345 67890 ^
|
||||
--output-dir outputs/freshrss/single_summaries
|
||||
--output-dir outputs/freshrss/single_summaries ^
|
||||
--timeout 120
|
||||
```
|
||||
|
||||
也可以通过 `summary_mcp.server` 暴露的 MCP 工具 `generate_article_summaries` 调用:
|
||||
|
||||
Reference in New Issue
Block a user