@tiens.nguyen/gonext-local-worker 1.0.60 → 1.0.61
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 +10 -8
- package/package.json +1 -1
package/gonext_agent_chat.py
CHANGED
|
@@ -32,18 +32,20 @@ _REAL_STDOUT = sys.stdout
|
|
|
32
32
|
|
|
33
33
|
def _ssl_context():
|
|
34
34
|
import ssl
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
# Disable cert verification — this agent runs locally against dev tunnels
|
|
36
|
+
# (gorok, ngrok) whose certs may not chain correctly in Python's SSL store.
|
|
37
|
+
ctx = ssl.create_default_context()
|
|
38
|
+
ctx.check_hostname = False
|
|
39
|
+
ctx.verify_mode = ssl.CERT_NONE
|
|
40
|
+
return ctx
|
|
40
41
|
|
|
41
42
|
|
|
42
43
|
def _http_request_impl(method, url, headers=None, body=None, timeout=25):
|
|
43
|
-
|
|
44
|
+
# Merge caller headers on top of sensible defaults.
|
|
45
|
+
merged = {"User-Agent": "gonext-agent/1.0", "Accept": "*/*"}
|
|
44
46
|
if headers:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
merged.update(headers)
|
|
48
|
+
req = urllib.request.Request(url, method=method.upper(), headers=merged)
|
|
47
49
|
data = body.encode() if isinstance(body, str) and body else (body or None)
|
|
48
50
|
try:
|
|
49
51
|
ctx = _ssl_context()
|
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.61",
|
|
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",
|