mirror of
https://github.com/mendableai/firecrawl.git
synced 2025-12-16 09:46:20 +00:00
Update llmExtract.ts
This commit is contained in:
parent
bd36c441d3
commit
e899ecbe44
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user