MCPcopy Index your code
hub / github.com/simstudioai/sim / shouldBillModelUsage

Function shouldBillModelUsage

apps/sim/providers/utils.ts:846–849  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

844 * @returns true if the usage should be billed to the user
845 */
846export function shouldBillModelUsage(model: string): boolean {
847 const hostedModels = getHostedModels()
848 return hostedModels.some((hostedModel) => model.toLowerCase() === hostedModel.toLowerCase())
849}
850
851/**
852 * Placeholder returned for providers that use their own credential mechanism

Callers 3

executeProviderRequestFunction · 0.90
utils.test.tsFile · 0.90
computePiCostFunction · 0.90

Calls 1

getHostedModelsFunction · 0.90

Tested by

no test coverage detected