@tiens.nguyen/gonext-local-worker 1.0.327 → 1.0.328
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gonext_agent_chat.py +6 -3
- package/package.json +1 -1
package/gonext_agent_chat.py
CHANGED
|
@@ -1585,12 +1585,15 @@ def _is_backend_unavailable(err) -> bool:
|
|
|
1585
1585
|
# down". Checked FIRST because a 429 body can also contain the word "timeout".
|
|
1586
1586
|
if _is_backend_overloaded(err):
|
|
1587
1587
|
return False
|
|
1588
|
-
# A structured
|
|
1589
|
-
# returns `Error code: 502 - {"error": …}` carries no "bad gateway" text for the
|
|
1588
|
+
# A structured gateway/timeout status IS an outage regardless of wording: a provider
|
|
1589
|
+
# that returns `Error code: 502 - {"error": …}` carries no "bad gateway" text for the
|
|
1590
1590
|
# phrase list below to match, and would otherwise be misfiled as a generic error.
|
|
1591
|
+
# 408 and Cloudflare's 522/524 are included so a real timeout STATUS keeps the same
|
|
1592
|
+
# answer the "timed out" text below has always given it — without them, adding the
|
|
1593
|
+
# structured check would have quietly demoted those.
|
|
1591
1594
|
code = _http_status_of(err)
|
|
1592
1595
|
if code is not None:
|
|
1593
|
-
return code in (502, 503, 504)
|
|
1596
|
+
return code in (502, 503, 504, 408, 522, 524)
|
|
1594
1597
|
return (
|
|
1595
1598
|
"502 bad gateway" in s
|
|
1596
1599
|
or "503 service" in s
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiens.nguyen/gonext-local-worker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.328",
|
|
4
4
|
"description": "Polls GoNext cloud API for async local LLM jobs and runs them against Ollama/OpenAI-compatible servers on this Mac",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|