Skip to content

Commit

Permalink
feat: bump ocr to use 4o-mini (#1419)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoy authored Jul 18, 2024
2 parents 7bf9187 + 33e3d89 commit 21d3c33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/util/server/src/ml/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}

Expand Down
2 changes: 1 addition & 1 deletion packages/util/server/src/ml/textToRecipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 21d3c33

Please sign in to comment.