Nick: prompt should be optional on /extract sdks

This commit is contained in:
Nicolas 2024-12-19 16:14:49 -03:00
parent 8063474c85
commit 3e60f175bb
3 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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;

View File

@ -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