(total: number)
| 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) }), []) |