Update llmExtract.ts
This commit is contained in:
@@ -159,8 +159,8 @@ export async function generateOpenAICompletions(
|
|||||||
role: "user",
|
role: "user",
|
||||||
content:
|
content:
|
||||||
options.prompt !== undefined
|
options.prompt !== undefined
|
||||||
? `Transform the above content into structured JSON output based on 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}`
|
||||||
: "Transform the above content into structured JSON output.",
|
: "Transform the above content into structured JSON output based on the provided schema if any.",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
response_format: options.schema
|
response_format: options.schema
|
||||||
|
|||||||
Reference in New Issue
Block a user