This commit is contained in:
Nicolas 2025-01-18 21:10:11 -03:00
parent 88904a5cde
commit 0ec52613e2
3 changed files with 4 additions and 2 deletions

View File

@ -12,6 +12,7 @@ import { autoCharge } from "./auto_charge";
import { getValue, setValue } from "../redis"; import { getValue, setValue } from "../redis";
import type { Logger } from "winston"; import type { Logger } from "winston";
// Deprecated, done via rpc
const FREE_CREDITS = 500; const FREE_CREDITS = 500;
/** /**

View File

@ -1,6 +1,6 @@
{ {
"name": "@mendable/firecrawl-js", "name": "@mendable/firecrawl-js",
"version": "1.15.4", "version": "1.15.5",
"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",

View File

@ -257,6 +257,7 @@ export interface ExtractParams<LLMSchema extends zt.ZodSchema = any> {
systemPrompt?: string; systemPrompt?: string;
allowExternalLinks?: boolean; allowExternalLinks?: boolean;
includeSubdomains?: boolean; includeSubdomains?: boolean;
origin?: string;
} }
/** /**
@ -1016,7 +1017,7 @@ export default class FirecrawlApp {
try { try {
const response: AxiosResponse = await this.postRequest( const response: AxiosResponse = await this.postRequest(
this.apiUrl + `/v1/extract`, this.apiUrl + `/v1/extract`,
{ ...jsonData, schema: jsonSchema, origin: "api-sdk" }, { ...jsonData, schema: jsonSchema, origin: params?.origin || "api-sdk" },
headers headers
); );