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",