From a5d15d230d54fc308d0675d8e8b7368415ac564b Mon Sep 17 00:00:00 2001 From: Vasily Zubarev Date: Fri, 21 Mar 2025 18:53:38 +0100 Subject: [PATCH] fix: set detail: auto for OpenAI prompt --- app/ai/analyze.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/ai/analyze.ts b/app/ai/analyze.ts index 1da671f..e667392 100644 --- a/app/ai/analyze.ts +++ b/app/ai/analyze.ts @@ -71,6 +71,7 @@ export async function analyzeTransaction( role: "user", content: attachments.map((attachment) => ({ type: "input_image", + detail: "auto", image_url: `data:${attachment.contentType};base64,${attachment.base64}`, })), },