mirror of
https://github.com/mendableai/firecrawl.git
synced 2025-12-12 23:51:27 +00:00
Update llmExtract.ts
This commit is contained in:
parent
bd36c441d3
commit
e899ecbe44
@ -159,8 +159,8 @@ export async function generateOpenAICompletions(
|
||||
role: "user",
|
||||
content:
|
||||
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.",
|
||||
? `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.",
|
||||
},
|
||||
],
|
||||
response_format: options.schema
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user