@tiens.nguyen/gonext-local-worker 1.0.110 → 1.0.112
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 +2 -2
- package/package.json +1 -1
package/gonext-local-worker.mjs
CHANGED
|
@@ -142,7 +142,7 @@ const OCR_CORRECT_TIMEOUT_MS = 120_000;
|
|
|
142
142
|
// OCR translation/correction is hardcoded to a managed Ollama service + model.
|
|
143
143
|
// (The user-configurable "OCR translation model" chooser was removed.)
|
|
144
144
|
const OCR_TRANSLATE_OLLAMA_URL = "https://ollama1.gomarsic.cc";
|
|
145
|
-
const OCR_TRANSLATE_OLLAMA_MODEL = "
|
|
145
|
+
const OCR_TRANSLATE_OLLAMA_MODEL = "qwen3:14b";
|
|
146
146
|
|
|
147
147
|
async function workerFetch(path, init = {}) {
|
|
148
148
|
const url = `${apiBase}${path.startsWith("/") ? path : `/${path}`}`;
|
|
@@ -1225,7 +1225,7 @@ async function runOcrJob(job) {
|
|
|
1225
1225
|
await rm(tempDir, { recursive: true, force: true }).catch(() => {});
|
|
1226
1226
|
}
|
|
1227
1227
|
// Post-process: correct grammar/language via the hardcoded managed Ollama
|
|
1228
|
-
// service (
|
|
1228
|
+
// service (qwen3:14b). Falls back to raw OCR text on any error so the job
|
|
1229
1229
|
// never fails here. (`payload.correctionModel` is no longer used.)
|
|
1230
1230
|
extractedText = await correctOcrText(extractedText);
|
|
1231
1231
|
const totalTimeSeconds = (Date.now() - start) / 1000;
|
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.112",
|
|
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",
|