@tiens.nguyen/gonext-local-worker 1.0.106 → 1.0.107
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 +4 -1
- package/package.json +1 -1
package/gonext-local-worker.mjs
CHANGED
|
@@ -1750,7 +1750,10 @@ function logModelResponseToWorker(jobId, modelId, text) {
|
|
|
1750
1750
|
);
|
|
1751
1751
|
}
|
|
1752
1752
|
|
|
1753
|
-
async function checkOllamaTags(
|
|
1753
|
+
async function checkOllamaTags(rawBase) {
|
|
1754
|
+
// Tolerate a base that already includes the endpoint (users sometimes paste the
|
|
1755
|
+
// full `.../api/tags` URL) so we don't fetch `.../api/tags/api/tags` → 404.
|
|
1756
|
+
const base = normalizeBaseUrl(rawBase).replace(/\/(?:api\/tags|api|v1)$/i, "");
|
|
1754
1757
|
const endpoint = `${base}/api/tags`;
|
|
1755
1758
|
try {
|
|
1756
1759
|
// Bounded so an unreachable/slow host fails fast (a hung fetch would exceed
|
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.107",
|
|
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",
|