Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Nick:

Nicolas0ec52613e263
diff --git a/apps/api/src/services/billing/credit_billing.ts b/apps/api/src/services/billing/credit_billing.ts
index 5eb541fd4..0a8660062 100644
--- a/apps/api/src/services/billing/credit_billing.ts
+++ b/apps/api/src/services/billing/credit_billing.ts
@@ -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;
/**
diff --git a/apps/js-sdk/firecrawl/package.json b/apps/js-sdk/firecrawl/package.json
index e2879e0f2..9f7002463 100644
--- a/apps/js-sdk/firecrawl/package.json
+++ b/apps/js-sdk/firecrawl/package.json
@@ -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",
diff --git a/apps/js-sdk/firecrawl/src/index.ts b/apps/js-sdk/firecrawl/src/index.ts
index 493efb515..33b56787b 100644
--- a/apps/js-sdk/firecrawl/src/index.ts
+++ b/apps/js-sdk/firecrawl/src/index.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
);