mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-03 04:40:41 +08:00
Nick: prompt should be optional on /extract sdks
This commit is contained in:
parent
8063474c85
commit
3e60f175bb
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mendable/firecrawl-js",
|
||||
"version": "1.9.6",
|
||||
"version": "1.9.7",
|
||||
"description": "JavaScript SDK for Firecrawl API",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
@ -243,7 +243,7 @@ export interface MapResponse {
|
||||
* Defines options for extracting information from URLs.
|
||||
*/
|
||||
export interface ExtractParams<LLMSchema extends zt.ZodSchema = any> {
|
||||
prompt: string;
|
||||
prompt?: string;
|
||||
schema?: LLMSchema;
|
||||
systemPrompt?: string;
|
||||
allowExternalLinks?: boolean;
|
||||
|
@ -26,7 +26,7 @@ class FirecrawlApp:
|
||||
"""
|
||||
Parameters for the extract operation.
|
||||
"""
|
||||
prompt: str
|
||||
prompt: Optional[str] = None
|
||||
schema_: Optional[Any] = pydantic.Field(None, alias='schema')
|
||||
system_prompt: Optional[str] = None
|
||||
allow_external_links: Optional[bool] = False
|
||||
|
Loading…
x
Reference in New Issue
Block a user