[WORK] Advisor: таймаут LLM 20с с fallback на данные движка; смоук-тесты 25/25 зелёные
This commit is contained in:
1 parent
2d462869fe
commit
84bbf33147
1 file changed
+1
-1
@@ -380,7 +380,7 @@ def ask(q, body):
|
||||
req = urllib.request.Request("http://192.168.1.229:11434/api/generate",
|
||||
data=body_req,
|
||||
headers={"Content-Type": "application/json"})
|
||||
with urllib.request.urlopen(req, timeout=90) as r:
|
||||
with urllib.request.urlopen(req, timeout=20) as r:
|
||||
answer = _json.loads(r.read().decode()).get("response", "").strip()
|
||||
except Exception:
|
||||
answer = None
|
||||
|
||||
Reference in new issue
Block a user