mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-08 17:19:04 +08:00
Nick:
This commit is contained in:
parent
88904a5cde
commit
0ec52613e2
@ -12,6 +12,7 @@ import { autoCharge } from "./auto_charge";
|
||||
import { getValue, setValue } from "../redis";
|
||||
import type { Logger } from "winston";
|
||||
|
||||
// Deprecated, done via rpc
|
||||
const FREE_CREDITS = 500;
|
||||
|
||||
/**
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mendable/firecrawl-js",
|
||||
"version": "1.15.4",
|
||||
"version": "1.15.5",
|
||||
"description": "JavaScript SDK for Firecrawl API",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
@ -257,6 +257,7 @@ export interface ExtractParams<LLMSchema extends zt.ZodSchema = any> {
|
||||
systemPrompt?: string;
|
||||
allowExternalLinks?: boolean;
|
||||
includeSubdomains?: boolean;
|
||||
origin?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1016,7 +1017,7 @@ export default class FirecrawlApp {
|
||||
try {
|
||||
const response: AxiosResponse = await this.postRequest(
|
||||
this.apiUrl + `/v1/extract`,
|
||||
{ ...jsonData, schema: jsonSchema, origin: "api-sdk" },
|
||||
{ ...jsonData, schema: jsonSchema, origin: params?.origin || "api-sdk" },
|
||||
headers
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user