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