MCPcopy
hub / github.com/OpenPipe/OpenPipe / getOutputTitle

Function getOutputTitle

app/src/server/utils/getOutputTitle.ts:5–15  ·  view source on GitHub ↗
(modelId: string | null, slug?: string | null)

Source from the content-addressed store, hash-verified

3import { getComparisonModelSlug, isComparisonModel } from "~/utils/comparisonModels";
4
5export const getOutputTitle = (modelId: string | null, slug?: string | null) => {
6 let title = null;
7 if (modelId === ORIGINAL_MODEL_ID) {
8 title = "Dataset Output";
9 } else if (modelId && isComparisonModel(modelId)) {
10 title = getComparisonModelSlug(modelId as ComparisonModel);
11 } else if (slug) {
12 title = "openpipe:" + slug;
13 }
14 return title;
15};

Callers 10

SettingsFunction · 0.90
ResultsFunction · 0.90
HeatmapFunction · 0.90
AddEvalModalFunction · 0.90
ModelVisibilityDropdownFunction · 0.90
ModelHeaderFunction · 0.90
ComparisonRowFunction · 0.90
FieldComparisonModalFunction · 0.90

Calls 2

isComparisonModelFunction · 0.90
getComparisonModelSlugFunction · 0.90

Tested by

no test coverage detected