File tree Expand file tree Collapse file tree 2 files changed +0
-3
lines changed
apps/api/src/questionnaire/utils Expand file tree Collapse file tree 2 files changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -419,7 +419,6 @@ async function parseQuestionsWithOpenAI(
419419 const { object } = await generateObject ( {
420420 model : openai ( 'gpt-4o-mini' ) ,
421421 schema : questionExtractionSchema ,
422- mode : 'json' ,
423422 prompt : `Extract all questions/fields and their answers from this questionnaire or form.
424423
425424Include:
@@ -463,7 +462,6 @@ async function parseQuestionsWithVision(
463462 const { object } = await generateObject ( {
464463 model : openai ( 'gpt-4o' ) ,
465464 schema : questionExtractionSchema ,
466- mode : 'json' ,
467465 messages : [
468466 {
469467 role : 'user' ,
Original file line number Diff line number Diff line change @@ -120,7 +120,6 @@ export async function parseChunkQuestionsAndAnswers(
120120 try {
121121 const { object } = await generateObject ( {
122122 model : openai ( PARSING_MODEL ) ,
123- mode : 'json' ,
124123 schema : jsonSchema ( {
125124 type : 'object' ,
126125 properties : {
You can’t perform that action at this time.
0 commit comments