4export const telePromptModelsH = module1ToObj(telePromptModelsMod) as Record<string, string> 6const deriveShortName = (model: string): string => { 7 const afterSlash = model.split('/').pop() || model 9 .replace(/-preview$/, '') 11 .replace(/-chat-/, '-') 12 .replace(/[-:]/g, ' ') 13 .replace(/(\d+)\.(\d+)/g, '$1$2') 15 .map((w, i) => i === 0 ? w : w[0]!.toUpperCase() + w.slice(1)) 19export const getShortModelName = (model: string): string => { 20 if (model === 'test-placeholder') return 'test-ai' 21 return deriveShortName(model)