bug: Utility tasks die at 15s because of hardcoded timeout — breaks slow hardware
还没有人认领这个 Issue。
评估
调研方向
从cptr/utils/ai.py开始,阅读chat_completion函数;issue指出该函数为实用任务使用了httpx.AsyncClient的15秒超时。检查项目如何读取环境变量,以及如何配置CPTR_STREAM_*超时。完成标准是实用任务可以使用可配置的超时,并且issue中慢速硬件的情况不再在15秒时失败。
由索引模型根据 Issue 内容生成。
描述
Hi,
I run slow hardware and have spent the day trying to get it to just churn tasks to read my code so i don't have to buy compute because the wife complains about money and AI. So I set up this computer/ollama/openwebui thing on my truenas goldeneye server and I love it but I hit timeout walls.
I see these timeout walls are hard coded so i change them manually and then i can churn AI compute like a man should. So then 1morning/10 grok dollars/ one wife went to town alone (sounds ok but its not).....anyway i have what i believe is a fix for sad slow hardware people who have a wife that will absolutely not let them upgrade hardware right now. So they can just let their old sad server cook with this fix. I want others to be able to run on slow hardware successfully without my pain so here it is:
The hardcoded timeout is in cptr/utils/ai.py inside the chat_completion function:async with httpx.AsyncClient(timeout=httpx.Timeout(15)) as client:This path is used for utility tasks (title generation, follow-ups, tags). The main streaming path respects the CPTR_STREAM_* timeouts. This one does not. Raising AIOHTTP_CLIENT_TIMEOUT and the Computer stream timeouts does not affect it.Confirmed fix: Change the 15 to a higher value (I used 14400) and make it persistent with a bind mount of the patched file. After that, utility tasks no longer die at 15 seconds and can complete successfully on slow hardware.Suggested upstream fix: Make this timeout configurable via an environment variable (e.g. CPTR_UTILITY_TIMEOUT) or reuse the existing stream timeout values so people on slower hardware can raise it without patching the container.
I hope this helps someone thanks.
-D
- 主要语言
- Python
- 星标
- 768
- 派生
- 108
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
open-webui/computer 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
open-webui/computer#328 · 4 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 72/100
open-webui/computer#327 · 7 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
open-webui/computer#314 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
open-webui/computer#293 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
open-webui/computer#286 · 1 条评论 ·
查看 open-webui/computer 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 72/100
pdm-project/pdm#4042 ·
维护者通常 1 天内回复
-
change relation
难度 1/5 1 小时以内 新手友好度 76/100
globalwordnet/english-wordnet#1467 ·
维护者通常 1 天内回复
-
pr-babysit: the validator reports only the hex part of the harvest fingerprint, so a launch stops review-report-unusable可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭follow-up
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
521xueweihan/HelloGitHub#4618 ·