(model: string, shortName: ModelShortName)
| 164 | } |
| 165 | |
| 166 | function trackUnknownModelCost(model: string, shortName: ModelShortName): void { |
| 167 | logEvent('tengu_unknown_model_cost', { |
| 168 | model: model as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, |
| 169 | shortName: |
| 170 | shortName as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, |
| 171 | }) |
| 172 | setHasUnknownModelCost() |
| 173 | } |
| 174 | |
| 175 | // Calculate the cost of a query in US dollars. |
| 176 | // If the model's costs are not found, use the default model's costs. |
no test coverage detected