(input: TokenizationInput)
| 115 | * Calculates cost for tokenization input object |
| 116 | */ |
| 117 | export function calculateTokenizationCost(input: TokenizationInput): StreamingCostResult { |
| 118 | return calculateStreamingCost( |
| 119 | input.model, |
| 120 | input.inputText, |
| 121 | input.outputText, |
| 122 | input.systemPrompt, |
| 123 | input.context, |
| 124 | input.messages |
| 125 | ) |
| 126 | } |
| 127 | |
| 128 | /** |
| 129 | * Creates a streaming cost result from existing provider response data |
nothing calls this directly
no test coverage detected