Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

644 B
Raw Blame
// The title of the details dialog of a chat model.
//
// It reads "group: name". A model that is the only one of its group carries
// the group's name, and the dialog was headed "Qwen 3.8 35B MoE Distill:
// Qwen 3.8 35B MoE Distill" (persona walk, 09.10.2026, Fund 22). A name
// stands once in the title, on every platform.

export function modelInfoTitle(model: { name: string; group?: string } | null | undefined): string {
  if (!model) return 'Model'
  if (!model.group) return model.name || 'Model'
  if (model.group.trim().toLowerCase() === model.name.trim().toLowerCase()) return model.name
  return `${model.group}: ${model.name}`
}