@tiens.nguyen/gonext-local-worker 1.0.102 → 1.0.104
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-local-worker.mjs +6 -1
- package/package.json +1 -1
package/gonext-local-worker.mjs
CHANGED
|
@@ -1753,7 +1753,12 @@ function logModelResponseToWorker(jobId, modelId, text) {
|
|
|
1753
1753
|
async function checkOllamaTags(base) {
|
|
1754
1754
|
const endpoint = `${base}/api/tags`;
|
|
1755
1755
|
try {
|
|
1756
|
-
|
|
1756
|
+
// Bounded so an unreachable/slow host fails fast (a hung fetch would exceed
|
|
1757
|
+
// the client's local-health wait and leave the status dot stuck "pending").
|
|
1758
|
+
const res = await fetch(endpoint, {
|
|
1759
|
+
method: "GET",
|
|
1760
|
+
signal: AbortSignal.timeout(4000),
|
|
1761
|
+
});
|
|
1757
1762
|
if (!res.ok) return { online: false, endpoint, models: [] };
|
|
1758
1763
|
const j = await res.json();
|
|
1759
1764
|
const source = sourceLabelFromBase(base);
|
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.104",
|
|
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",
|