Skip to content

Commit

Permalink
Update llmExtract.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nickscamara committed Dec 19, 2024
1 parent 0560511 commit 066071c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/scraper/scrapeURL/transformers/llmExtract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
},
],
Expand Down

0 comments on commit 066071c

Please sign in to comment.