@tiens.nguyen/gonext-local-worker 1.0.52 → 1.0.54
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 +3 -1
- package/package.json +1 -1
package/gonext_agent_chat.py
CHANGED
|
@@ -42,7 +42,7 @@ def _ssl_context():
|
|
|
42
42
|
return ssl.create_default_context()
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
def _http_request_impl(method, url, headers=None, body=None, timeout=
|
|
45
|
+
def _http_request_impl(method, url, headers=None, body=None, timeout=20):
|
|
46
46
|
req = urllib.request.Request(url, method=method.upper())
|
|
47
47
|
if headers:
|
|
48
48
|
for k, v in headers.items():
|
|
@@ -147,6 +147,8 @@ def run_agent_chat(cfg):
|
|
|
147
147
|
model=model,
|
|
148
148
|
max_steps=max_steps,
|
|
149
149
|
step_callbacks=[step_callback],
|
|
150
|
+
executor_kwargs={"timeout_seconds": 60},
|
|
151
|
+
additional_authorized_imports=["json", "urllib", "urllib.request", "urllib.error"],
|
|
150
152
|
)
|
|
151
153
|
# Emit before agent.run() so the web no-progress timer resets while the
|
|
152
154
|
# model loads its weights and generates its first reasoning step.
|
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.54",
|
|
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",
|