mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-08 13:29:02 +08:00
Update llmExtract.ts
This commit is contained in:
parent
64607f3f20
commit
81c347f538
@ -282,6 +282,22 @@ Consider:
|
|||||||
3. Appropriate data types for each field
|
3. Appropriate data types for each field
|
||||||
4. Nested objects and arrays where appropriate
|
4. Nested objects and arrays where appropriate
|
||||||
|
|
||||||
|
Valid JSON schema, has to be simple. No crazy properties. OpenAI has to support it.
|
||||||
|
Supported types
|
||||||
|
The following types are supported for Structured Outputs:
|
||||||
|
|
||||||
|
String
|
||||||
|
Number
|
||||||
|
Boolean
|
||||||
|
Integer
|
||||||
|
Object
|
||||||
|
Array
|
||||||
|
Enum
|
||||||
|
anyOf
|
||||||
|
|
||||||
|
Formats are not supported. Min/max are not supported. Anything beyond the above is not supported. Keep it simple with types and descriptions.
|
||||||
|
Optionals are not supported.
|
||||||
|
Keep it simple. Don't create too many properties, just the ones that are needed. Don't invent properties.
|
||||||
Return a valid JSON schema object with properties that would capture the information requested in the prompt.`,
|
Return a valid JSON schema object with properties that would capture the information requested in the prompt.`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user