From 33e3d89bb24668852cca0897358b0d374257f22c Mon Sep 17 00:00:00 2001 From: julianpoyourow Date: Thu, 18 Jul 2024 22:02:08 +0000 Subject: [PATCH] feat: bump ocr to use 4o-mini --- packages/util/server/src/ml/openai.ts | 1 + packages/util/server/src/ml/textToRecipe.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/util/server/src/ml/openai.ts b/packages/util/server/src/ml/openai.ts index 4d5a2858..e7598273 100644 --- a/packages/util/server/src/ml/openai.ts +++ b/packages/util/server/src/ml/openai.ts @@ -9,6 +9,7 @@ import { RSRunnableFunction } from "./chatFunctions"; export enum SupportedGPTModel { GPT35Turbo = "gpt-3.5-turbo-0125", GPT4Turbo = "gpt-4-turbo-2024-04-09", + GPT4OMini = "gpt-4o-mini-2024-07-18", GPT4O = "gpt-4o-2024-05-13", } diff --git a/packages/util/server/src/ml/textToRecipe.ts b/packages/util/server/src/ml/textToRecipe.ts index 6cb90b2b..7f54543a 100644 --- a/packages/util/server/src/ml/textToRecipe.ts +++ b/packages/util/server/src/ml/textToRecipe.ts @@ -39,7 +39,7 @@ export const textToRecipe = async ( throw new Error("GPT function must have name for mandated tool call"); await openAiHelper.getJsonResponseWithTools( - SupportedGPTModel.GPT35Turbo, + SupportedGPTModel.GPT4OMini, [ { role: "system",