MCPcopy Index your code
hub / github.com/OpenPipe/OpenPipe / useModelTestingStats

Function useModelTestingStats

app/src/utils/hooks.ts:292–306  ·  view source on GitHub ↗
(
  datasetId?: string,
  modelId?: string,
  refetchInterval?: number,
)

Source from the content-addressed store, hash-verified

290};
291
292export const useModelTestingStats = (
293 datasetId?: string,
294 modelId?: string,
295 refetchInterval?: number,
296) => {
297 const filters = useMappedModelIdFilters();
298 const visibleModelIds = useVisibleModelIds().visibleModelIds;
299
300 const result = api.datasetEvals.testingStats.useQuery(
301 { datasetId: datasetId ?? "", filters, modelId: modelId ?? "", visibleModelIds },
302 { enabled: !!datasetId && !!modelId, refetchInterval },
303 );
304
305 return useStableData(result);
306};
307
308// prevent blank filters from throwing off caching
309const removeEmptyFilters = (filters: FilterData[]) => {

Callers 2

ModelHeaderFunction · 0.90
EvalHeaderPillFunction · 0.90

Calls 3

useMappedModelIdFiltersFunction · 0.90
useVisibleModelIdsFunction · 0.90
useStableDataFunction · 0.85

Tested by

no test coverage detected