Skip to content

Commit 95d93a2

Browse files
committed
change
1 parent 59b2023 commit 95d93a2

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

apps/sim/providers/utils.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isHosted } from '@/lib/environment'
1+
import { getCostMultiplier, isHosted } from '@/lib/environment'
22
import { createLogger } from '@/lib/logs/console/logger'
33
import { anthropicProvider } from '@/providers/anthropic'
44
import { azureOpenAIProvider } from '@/providers/azure-openai'
@@ -480,18 +480,10 @@ export function calculateCost(
480480
: pricing.input / 1_000_000)
481481

482482
const outputCost = completionTokens * (pricing.output / 1_000_000)
483-
484-
logger.info('Input multiplier', { inputMultiplier })
485-
logger.info('Output multiplier', { outputMultiplier })
486-
487483
const finalInputCost = inputCost * (inputMultiplier ?? 1)
488484
const finalOutputCost = outputCost * (outputMultiplier ?? 1)
489485
const finalTotalCost = finalInputCost + finalOutputCost
490486

491-
logger.info('Final input cost', { finalInputCost })
492-
logger.info('Final output cost', { finalOutputCost })
493-
logger.info('Final total cost', { finalTotalCost })
494-
495487
return {
496488
input: Number.parseFloat(finalInputCost.toFixed(8)), // Use 8 decimal places for small costs
497489
output: Number.parseFloat(finalOutputCost.toFixed(8)),

0 commit comments

Comments
 (0)