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

Function getComparisonModel

app/src/utils/comparisonModels.ts:22–26  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

20};
21
22export const getComparisonModel = (name: string) => {
23 const model = Object.entries(COMPARISON_MODEL_NAMES).find(([, value]) => value.name === name);
24 if (!model) return null;
25 return model[0] as ComparisonModel;
26};
27
28export const getComparisonModelName = (key: ComparisonModel) => {
29 const model = Object.entries(COMPARISON_MODEL_NAMES).find(([id]) => id === key);

Callers 1

useMappedModelIdFiltersFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected