import { Layers } from "lucide-react"
import { useModels } from "@/lib/queries"
import { cn } from "@/lib/utils"
const ROLES = ["fast", "heavy", "coder", "reasoning", "vision", "scout"]
export function RolesCard() {
const { data } = useModels(3_000)
const models = data?.models ?? []
const running = data?.running ?? []
return (
Rollen-Belegung
{ROLES.map((role) => {
const m = models.find((x) => x.role === role)
const isRunning = m ? running.includes(m.name) : false
return (
{role}
{m ? m.name.split("/").pop()?.replace(/\.gguf$/i, "") : "nicht zugewiesen"}
{m && (
{m.prompt_cache && (
PC
)}
{m.spec_draft_model && (
SPEC
)}
{m.parallel_slots > 1 && (
SLOTS: {m.parallel_slots}
)}
)}
{m ? (
isRunning ? (
warm
) : (
bereit
)
) : (
—
)}
)
})}
Laden erfolgt automatisch per Auto-Swap.
)
}