mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 04:39:03 +08:00
Update llm-cost.ts
This commit is contained in:
parent
9cd48d7f73
commit
b8a30a50e2
@ -9,7 +9,7 @@ interface ModelPricing {
|
||||
mode: string;
|
||||
}
|
||||
const tokenPerCharacter = 4;
|
||||
const baseTokenCost = 200;
|
||||
const baseTokenCost = 300;
|
||||
|
||||
export function calculateFinalResultCost(data: any): number {
|
||||
return Math.floor((JSON.stringify(data).length / tokenPerCharacter) + baseTokenCost);
|
||||
|
Loading…
x
Reference in New Issue
Block a user