MCPcopy Create free account
hub / github.com/Noumena-Network/code / trackUnknownModelCost

Function trackUnknownModelCost

src/utils/modelCost.ts:214–221  ·  view source on GitHub ↗
(model: string, shortName: ModelShortName)

Source from the content-addressed store, hash-verified

212}
213
214function 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.

Callers 1

getModelCostsFunction · 0.85

Calls 2

setHasUnknownModelCostFunction · 0.85
logEventFunction · 0.50

Tested by

no test coverage detected