(model: string, shortName: ModelShortName)
| 212 | } |
| 213 | |
| 214 | function trackUnknownModelCost(model: string, shortName: ModelShortName): void { |
| 215 | logEvent('ncode_unknown_model_cost', { |
| 216 | model: model as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, |
| 217 | shortName: |
| 218 | shortName as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, |
| 219 | }) |
| 220 | setHasUnknownModelCost() |
| 221 | } |
| 222 | |
| 223 | // Calculate the cost of a query in US dollars. |
| 224 | // If the model's costs are not found, use the default model's costs. |
no test coverage detected