aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workers/inference.ts
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-04-09 22:53:59 +0100
committerMohamedBassem <me@mbassem.com>2024-04-09 22:54:34 +0100
commit2806701318dff77b10a5574d4b26ef6032f6b9bc (patch)
tree4655587d97249f8b4729ab288d9924a3e8491942 /apps/workers/inference.ts
parenta9242a56d909a61ba6d51e531763294edb6f049c (diff)
downloadkarakeep-2806701318dff77b10a5574d4b26ef6032f6b9bc.tar.zst
feature(inference): Upgrade the default vision model to the new gpt-4-turbo
Diffstat (limited to 'apps/workers/inference.ts')
-rw-r--r--apps/workers/inference.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/workers/inference.ts b/apps/workers/inference.ts
index 13b10aba..fa83140f 100644
--- a/apps/workers/inference.ts
+++ b/apps/workers/inference.ts
@@ -62,6 +62,7 @@ class OpenAIInferenceClient implements InferenceClient {
): Promise<InferenceResponse> {
const chatCompletion = await this.openAI.chat.completions.create({
model: serverConfig.inference.imageModel,
+ response_format: { type: "json_object" },
messages: [
{
role: "user",