diff --git a/src/utils/ocr.ts b/src/utils/ocr.ts index eae7445..2d91f00 100644 --- a/src/utils/ocr.ts +++ b/src/utils/ocr.ts @@ -2,6 +2,7 @@ import { openaiApiKey } from "./configs"; import OpenAI from "openai"; import sharp from "sharp"; + const openai = new OpenAI({ apiKey: openaiApiKey, }); @@ -49,7 +50,6 @@ export async function parseVitalsFromImage(image: Buffer) { }, { role: "user", - content: [ { type: "image_url", @@ -70,4 +70,4 @@ export async function parseVitalsFromImage(image: Buffer) { } return parseOpenAiResponse(response); -} +} \ No newline at end of file