mirror of
https://github.com/margrop/wrong-notebook.git
synced 2026-12-07 00:57:41 +08:00
OpenAI 兼容接口的 SDK 未设置超时,单次请求默认可等 10 分钟、失败后再重试 2 次, 推理模型识别大图时自动分题最长要 30 分钟以上才失败,任务一直显示识别中。 基类 run 统一为每次调用设置 10 分钟总时限,并把中止信号传给 OpenAI、Azure、 Anthropic、Gemini 各 SDK(Gemini 到期后不再重试),超时按 AI_TIMEOUT_ERROR 失败, 可在识别任务中重试;超时提示补充换用更快模型或缩小识别区域的建议。 Refs: https://github.com/margrop/wrong-notebook/issues/17 Refs: https://github.com/margrop/wrong-notebook/issues/15