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

Function model

apps/sim/lib/logs/execution/logger.test.ts:671–678  ·  view source on GitHub ↗
(total: number)

Source from the content-addressed store, hash-verified

669
670 test('two boundaries (pause then resume) bill the full run exactly once', async () => {
671 const model = (total: number) => ({
672 'gpt-4o': {
673 input: total * 0.6,
674 output: total * 0.4,
675 total,
676 tokens: { input: 10, output: 5, total: 15 },
677 },
678 })
679
680 // Boundary 1 (pause): nothing billed yet, partial cost.
681 await run(costSummary({ models: model(1) }), [])

Callers 1

logger.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected