llm.py: Timeout auf 60s erhöht für Tool-Calling

This commit is contained in:
root 2026-03-09 14:35:33 +07:00
parent a217eab970
commit 1e6e2290a2

View file

@ -144,7 +144,7 @@ def _call_openrouter(messages: list, api_key: str, use_tools: bool = True) -> di
"https://openrouter.ai/api/v1/chat/completions",
headers={"Authorization": f"Bearer {api_key}"},
json=payload,
timeout=30,
timeout=60,
)
r.raise_for_status()
return r.json()