Update llmExtract.ts

This commit is contained in:
Nicolas 2024-12-18 23:45:43 -03:00
parent 05605112bb
commit 066071cd54

View File

@ -159,7 +159,7 @@ export async function generateOpenAICompletions(
role: "user",
content:
options.prompt !== undefined
? `Transform the above content into structured JSON output based on the provided schema if any and the following user request: ${options.prompt}`
? `Transform the above content into structured JSON output based on the provided schema if any and the following user request: ${options.prompt}. If schema is provided, strictly follow it.`
: "Transform the above content into structured JSON output based on the provided schema if any.",
},
],