(modelId: string | null, slug?: string | null)
| 3 | import { getComparisonModelSlug, isComparisonModel } from "~/utils/comparisonModels"; |
| 4 | |
| 5 | export 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 | }; |
no test coverage detected