bug: Utility tasks die at 15s because of hardcoded timeout — breaks slow hardware
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 64/100
調査の方向性
cptr/utils/ai.pyから始めて、issueがユーティリティタスクに使用されるhttpx.AsyncClientの15秒タイムアウトを指摘しているchat_completion関数を読んでください。プロジェクトが環境変数をどのように読み取るか、また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 ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンfollow-up
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
521xueweihan/HelloGitHub#4618 ·