From cc9cf808218288e88b106d3b9bc05c25fc32b942 Mon Sep 17 00:00:00 2001 From: Sawyer Hood Date: Mon, 27 Nov 2023 08:45:08 -0800 Subject: [PATCH] Make prompt use high detail --- app/api/toHtml/route.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/api/toHtml/route.ts b/app/api/toHtml/route.ts index 5c1abfcb..7cddb5eb 100644 --- a/app/api/toHtml/route.ts +++ b/app/api/toHtml/route.ts @@ -18,7 +18,7 @@ export async function POST(request: Request) { content: [ { type: "image_url", - image_url: image, + image_url: { url: image, detail: "high" }, }, "Turn this into a single html file using tailwind.", ], @@ -50,7 +50,13 @@ export async function POST(request: Request) { type MessageContent = | string - | (string | { type: "image_url"; image_url: string })[]; + | ( + | string + | { + type: "image_url"; + image_url: string | { url: string; detail: "low" | "high" | "auto" }; + } + )[]; export type GPT4VCompletionRequest = { model: "gpt-4-vision-preview";