MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / modelInfo

Function modelInfo

app/src/server/fineTuningProviders/supportedModels.ts:89–96  ·  view source on GitHub ↗
(model: BaseModel)

Source from the content-addressed store, hash-verified

87 });
88
89export const modelInfo = (model: BaseModel): FrontendModelInfo => {
90 const modelWithProvider = (model.provider + ":" + model.baseModel) as ProviderWithModel;
91 const info = supportedModels[modelWithProvider];
92 if (!info) {
93 throw new Error("Unknown model: " + JSON.stringify(model));
94 }
95 return info;
96};
97
98export const calculateCost = (
99 model: BaseModel,

Callers 7

FineTuneModalFunction · 0.90
ModelHeaderFunction · 0.90
ModelsFunction · 0.90
FineTunesTableFunction · 0.90
GeneralFunction · 0.90
UsageFunction · 0.90
calculateCostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected