Skip to content

Commit fdf952e

Browse files
authored
Mariano/integrations architecture (#1881)
* refactor(api): remove redundant mode parameter from content extractor
1 parent 67e4e70 commit fdf952e

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

apps/api/src/questionnaire/utils/content-extractor.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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
425424
Include:
@@ -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',

apps/api/src/questionnaire/utils/question-parser.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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: {

0 commit comments

Comments
 (0)