mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 06:49:05 +08:00
fix rounding
This commit is contained in:
parent
6d2347b5f8
commit
324b4e2e1e
@ -13,7 +13,7 @@ const tokenPerCharacter = 0.5;
|
||||
const baseTokenCost = 300;
|
||||
|
||||
export function calculateThinkingCost(costTracking: CostTracking): number {
|
||||
return costTracking.toJSON().totalCost * 267000;
|
||||
return Math.ceil(costTracking.toJSON().totalCost * 267000);
|
||||
}
|
||||
|
||||
export function calculateFinalResultCost(data: any): number {
|
||||
|
Loading…
x
Reference in New Issue
Block a user