diff --git a/src/utils/gpt.ts b/src/utils/gpt.ts index d46a4f1..ec804ce 100644 --- a/src/utils/gpt.ts +++ b/src/utils/gpt.ts @@ -179,7 +179,7 @@ export const getInvoiceDataFromGPT = async function ( const completion = await openai.chat.completions.parse({ model: "gpt-4o", store: true, - response_format: zodResponseFormat(InstructionFormat, "instruction"), + response_format: zodResponseFormat(InstructionFormat as any, "instruction"), messages: [ { role: "user", content: extractedText }, {