From 3169e36b8e91719ddee0cfe57984ca48475000fe Mon Sep 17 00:00:00 2001 From: carlosziegler Date: Mon, 13 May 2024 21:16:40 +0200 Subject: [PATCH] feat: update completention request to use new open ai model gpt-4o --- app/api/toHtml/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/toHtml/route.ts b/app/api/toHtml/route.ts index 7cddb5eb..2ff441be 100644 --- a/app/api/toHtml/route.ts +++ b/app/api/toHtml/route.ts @@ -6,7 +6,7 @@ if you need to insert an image, use placehold.co to create a placeholder image. export async function POST(request: Request) { const { image } = await request.json(); const body: GPT4VCompletionRequest = { - model: "gpt-4-vision-preview", + model: "gpt-4o", max_tokens: 4096, messages: [ { @@ -59,7 +59,7 @@ type MessageContent = )[]; export type GPT4VCompletionRequest = { - model: "gpt-4-vision-preview"; + model: "gpt-4o"; messages: { role: "system" | "user" | "assistant" | "function"; content: MessageContent;