Skip to content

Commit

Permalink
Nick:
Browse files Browse the repository at this point in the history
nickscamara committed Jan 19, 2025
1 parent 88904a5 commit 0ec5261
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/api/src/services/billing/credit_billing.ts
Original file line number Diff line number Diff line change
@@ -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;

/**
2 changes: 1 addition & 1 deletion apps/js-sdk/firecrawl/package.json
Original file line number Diff line number Diff line change
@@ -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",
3 changes: 2 additions & 1 deletion apps/js-sdk/firecrawl/src/index.ts
Original file line number Diff line number Diff line change
@@ -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
);

0 comments on commit 0ec5261

Please sign in to comment.