aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workers/openaiWorker.ts
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-09-15 00:03:39 +0000
committerMohamedBassem <me@mbassem.com>2024-09-15 00:03:39 +0000
commitf263f9e48a38d6b6f0132d8c6ea2a38a6d19d1b6 (patch)
tree78fe565ef479977acb8aa13487a844733fec365b /apps/workers/openaiWorker.ts
parent3b8cebb8c88bd3d680b26000a7c90834aa511109 (diff)
downloadkarakeep-f263f9e48a38d6b6f0132d8c6ea2a38a6d19d1b6.tar.zst
feature(worker): Allow configuring inference job timeout and ollama keep alive. Fixes #389 #224
Diffstat (limited to 'apps/workers/openaiWorker.ts')
-rw-r--r--apps/workers/openaiWorker.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workers/openaiWorker.ts b/apps/workers/openaiWorker.ts
index 55695938..8bd2cf4a 100644
--- a/apps/workers/openaiWorker.ts
+++ b/apps/workers/openaiWorker.ts
@@ -81,7 +81,7 @@ export class OpenAiWorker {
{
concurrency: 1,
pollIntervalMs: 1000,
- timeoutSecs: 30,
+ timeoutSecs: serverConfig.inference.jobTimeoutSec,
},
);