Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 | 4x 7x 4x 2x 2x 4x 4x 4x 2x 2x 2x 2x 4x 7x 7x 7x 7x 3x 2x 7x 7x 2x 7x 7x 3x 3x 7x 7x 7x 7x 5x 20x 20x 7x 7x 3x 2x 2x 2x 2x 2x 2x 7x 7x 7x 7x 7x 7x 3x 3x 2x 2x | import { encodeResourceId } from "@/components/detail";
import MakerLogo from "@/components/img/MakerLogo/MakerLogo";
import {
FilterSelect,
ResourceCollection,
SortSelect,
useCollectionFilters,
} from "@/components/collection";
import {
DataRegion,
dataRegionMeta,
formatCostPerMToken,
formatKnowledgeCutoff,
formatTokenCount,
Model,
modelDisplayName,
ModelEffort,
MODEL_EFFORTS,
modelEffortMeta,
modelEffortRank,
modelLatencyMeta,
} from "@/objects/Model";
import { makerKey, modelMaker } from "@/objects/modelOrigin";
import { APP_ROUTES, ROUTE_PARAMS } from "@/routes/const";
import {
BotMessageSquare,
BrainCog,
CalendarClock,
ChevronRight,
Cpu,
Gauge,
} from "lucide-react";
import React, { useMemo } from "react";
import { Link } from "react-router-dom";
export interface ModelsGridProps {
models: Model[];
loading?: boolean;
}
// ─── Sort options ─────────────────────────────────────────────────────────────
type SortKey =
| "name_asc"
| "name_desc"
| "effort_desc"
| "effort_asc"
| "context_desc"
| "cutoff_desc"
| "cost_in_asc"
| "cost_in_desc";
const SORT_OPTIONS: { value: SortKey; label: string }[] = [
{ value: "name_asc", label: "Name (A → Z)" },
{ value: "name_desc", label: "Name (Z → A)" },
{ value: "effort_desc", label: "Effort (strongest first)" },
{ value: "effort_asc", label: "Effort (lightest first)" },
{ value: "context_desc", label: "Context window (largest first)" },
{ value: "cutoff_desc", label: "Knowledge cutoff (most recent first)" },
{ value: "cost_in_asc", label: "Input cost (cheapest first)" },
{ value: "cost_in_desc", label: "Input cost (most expensive first)" },
];
function sortModels(models: Model[], key: SortKey): Model[] {
return [...models].sort((a, b) => {
switch (key) {
case "name_asc":
return modelDisplayName(a).localeCompare(modelDisplayName(b));
case "name_desc":
return modelDisplayName(b).localeCompare(modelDisplayName(a));
case "effort_desc":
// Ties broken by name so the four bands do not shuffle between
// renders — Array.prototype.sort is stable, but the input order is
// whatever the API returned.
return (
modelEffortRank(b.effort) - modelEffortRank(a.effort) ||
modelDisplayName(a).localeCompare(modelDisplayName(b))
);
case "effort_asc":
return (
modelEffortRank(a.effort) - modelEffortRank(b.effort) ||
modelDisplayName(a).localeCompare(modelDisplayName(b))
);
case "context_desc":
return (b.context_window ?? 0) - (a.context_window ?? 0);
case "cutoff_desc":
// ISO dates compare lexicographically; a missing cutoff sorts last.
return (b.knowledge_cutoff ?? "").localeCompare(
a.knowledge_cutoff ?? "",
);
case "cost_in_asc":
return (
parseFloat(a.input_cost_per_token ?? "0") -
parseFloat(b.input_cost_per_token ?? "0")
);
case "cost_in_desc":
return (
parseFloat(b.input_cost_per_token ?? "0") -
parseFloat(a.input_cost_per_token ?? "0")
);
}
});
}
// ─── Effort + latency marks ───────────────────────────────────────────────────
/**
* The reasoning tier, as a pill. `title` carries the band's meaning and the
* two providers' names for it, so "Balanced" is self-explaining without a
* legend the page would otherwise need.
*/
const EffortPill: React.FC<{
effort: Model["effort"];
size?: "sm" | "md";
}> = ({ effort, size = "md" }) => {
const meta = modelEffortMeta(effort);
Eif (!meta) return null;
return (
<span
title={`${meta.description} (${meta.examples})`}
className={`shrink-0 font-medium rounded-full border ${meta.pill} ${
size === "sm" ? "text-[10px] px-1.5 py-0.5" : "text-xs px-2 py-0.5"
}`}
>
{meta.label}
</span>
);
};
/**
* Comparative speed as four bars. A band ("Fast") is a position in this
* catalogue rather than a measurement, and bars say that more honestly than
* a number would.
*/
const LatencyMeter: React.FC<{ latency: Model["latency"] }> = ({ latency }) => {
const meta = modelLatencyMeta(latency);
if (!meta) return null;
return (
<span
className="inline-flex items-center gap-1"
title={`${meta.label} — comparative speed within the catalogue`}
>
<Gauge className="size-3.5 text-gray-400 dark:text-gray-500" />
<span className="inline-flex items-end gap-0.5" aria-hidden="true">
{[0, 1, 2, 3].map((i) => (
<span
key={i}
className={`w-0.5 rounded-sm ${
i < meta.bars
? "bg-gray-500 dark:bg-gray-300"
: "bg-gray-200 dark:bg-gray-600"
} ${["h-1", "h-1.5", "h-2", "h-2.5"][i]}`}
/>
))}
</span>
<span className="text-gray-600 dark:text-gray-300">{meta.label}</span>
</span>
);
};
// ─── Model card ───────────────────────────────────────────────────────────────
const ModelCard: React.FC<{ model: Model }> = ({ model }) => {
const href = APP_ROUTES.USER.INFERENCE.MODELS.id.replace(
ROUTE_PARAMS.MODEL.id,
encodeResourceId(model.id),
);
const chatHref = APP_ROUTES.USER.INFERENCE.MODELS.chat.replace(
ROUTE_PARAMS.MODEL.id,
encodeResourceId(model.id),
);
const capTags = [model.is_vision && "Vision", model.is_chat && "Chat"].filter(
Boolean,
) as string[];
const region = dataRegionMeta(model.data_region);
return (
<div
className={`${model.is_default ? "border-yellow-500" : ""} ${model.is_recommended ? "border-purple-500" : ""} group relative flex flex-col rounded-xl border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 shadow-sm hover:shadow-md hover:border-gray-300 dark:hover:border-gray-500 transition-all overflow-hidden`}
>
{/* Main clickable area */}
<Link to={href} className="flex-1 p-5 flex flex-col gap-4">
{/* Header row */}
<div className="flex items-start justify-between gap-3">
<div className="flex items-center gap-3 min-w-0">
<div className="p-2 rounded-lg bg-gray-100 dark:bg-gray-700 shrink-0">
<MakerLogo
maker={makerKey(model.provider.name, model.model_name)}
className="size-10"
/>
</div>
<div className="min-w-0">
<div className="text-sm font-semibold text-gray-900 dark:text-gray-100 truncate">
{modelDisplayName(model)}
</div>
<div className="text-xs text-gray-400 dark:text-gray-500 mt-0.5">
{modelMaker(model)}
</div>
</div>
</div>
<div className="flex flex-col items-end gap-1 shrink-0">
<span
className={`text-xs font-medium px-2 py-0.5 rounded-full border ${
model.is_embedding
? "bg-violet-50 dark:bg-violet-950/40 text-violet-700 dark:text-violet-300 border-violet-200 dark:border-violet-800"
: "bg-blue-50 dark:bg-blue-950/40 text-blue-700 dark:text-blue-300 border-blue-200 dark:border-blue-800"
}`}
>
{model.is_embedding ? "Embedding" : "Inference"}
</span>
<EffortPill effort={model.effort} size="sm" />
</div>
</div>
{/* Model ID */}
<code className="text-xs bg-gray-100 dark:bg-gray-700 text-gray-500 dark:text-gray-400 px-2 py-1 rounded font-mono truncate block">
{model.model_name}
</code>
{/* Cost */}
{(model.input_cost_per_token || model.output_cost_per_token) && (
<div className="flex items-center gap-3 text-xs text-gray-500 dark:text-gray-400">
<span>
<span className="text-gray-400 dark:text-gray-500">In </span>
<span className="font-medium text-gray-700 dark:text-gray-300">
{formatCostPerMToken(model.input_cost_per_token)}
</span>
</span>
<span className="text-gray-300 dark:text-gray-600">·</span>
<span>
<span className="text-gray-400 dark:text-gray-500">Out </span>
<span className="font-medium text-gray-700 dark:text-gray-300">
{formatCostPerMToken(model.output_cost_per_token)}
</span>
</span>
</div>
)}
{/* Limits, speed and freshness — the three questions asked of a model
after "what does it cost": how much fits, how much comes back, and
how current it is. */}
<div className="grid grid-cols-2 gap-x-3 gap-y-1.5 text-xs text-gray-500 dark:text-gray-400">
<span className="flex items-center gap-1.5 min-w-0">
<Cpu className="size-3.5 shrink-0 text-gray-400 dark:text-gray-500" />
<span className="truncate">
{formatTokenCount(model.context_window)} ctx
{model.max_output_tokens
? ` · ${formatTokenCount(model.max_output_tokens)} out`
: ""}
</span>
</span>
<LatencyMeter latency={model.latency} />
{model.knowledge_cutoff && (
<span className="flex items-center gap-1.5 min-w-0">
<CalendarClock className="size-3.5 shrink-0 text-gray-400 dark:text-gray-500" />
<span
className="truncate"
title="Reliable knowledge cutoff, as published by the provider"
>
Knows to {formatKnowledgeCutoff(model.knowledge_cutoff)}
</span>
</span>
)}
</div>
{/* Capability tags + region */}
<div className="flex flex-wrap gap-1.5">
{model.is_default && (
<span className="text-xs font-bold italic px-2 py-0.5 rounded-full bg-yellow-50 dark:bg-yellow-950/40 text-yellow-700 dark:text-yellow-300 border border-yellow-200 dark:border-yellow-800">
System Default
</span>
)}
{model.is_recommended && (
<span className="text-xs font-bold italic px-2 py-0.5 rounded-full bg-purple-50 dark:bg-purple-950/40 text-purple-700 dark:text-purple-300 border border-purple-200 dark:border-purple-800">
Recommended
</span>
)}
{capTags.map((cap) => (
<span
key={cap}
className="text-xs px-2 py-0.5 rounded-full bg-emerald-50 dark:bg-emerald-950/40 text-emerald-700 dark:text-emerald-300 border border-emerald-200 dark:border-emerald-800"
>
{cap}
</span>
))}
{region && (
<span
className={`text-xs px-2 py-0.5 rounded-full border ${region.pill}`}
>
{region.label}
</span>
)}
</div>
</Link>
{/* Footer action row */}
<div className="flex items-center justify-between px-5 py-3 border-t border-gray-100 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/50">
{!model.is_available ? (
<span className="text-xs text-gray-400 dark:text-gray-500 select-none">
Not available here
</span>
) : !model.is_embedding ? (
<Link
to={chatHref}
onClick={(e) => e.stopPropagation()}
className="flex items-center gap-1.5 text-xs text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 transition-colors"
>
<BotMessageSquare className="size-3.5" />
Chat
</Link>
) : (
<span className="text-xs text-gray-300 dark:text-gray-600 select-none">
No chat (embedding only)
</span>
)}
<Link
to={href}
className="flex items-center gap-1 text-xs font-medium text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 transition-colors"
>
View
<ChevronRight className="size-3.5" />
</Link>
</div>
</div>
);
};
// ─── Model row ────────────────────────────────────────────────────────────────
const ModelRow: React.FC<{ model: Model }> = ({ model }) => {
const href = APP_ROUTES.USER.INFERENCE.MODELS.id.replace(
ROUTE_PARAMS.MODEL.id,
encodeResourceId(model.id),
);
const chatHref = APP_ROUTES.USER.INFERENCE.MODELS.chat.replace(
ROUTE_PARAMS.MODEL.id,
encodeResourceId(model.id),
);
const region = dataRegionMeta(model.data_region);
return (
<div
className={`${model.is_default ? "border-l-2 border-l-yellow-400" : ""} ${model.is_recommended ? "border-l-2 border-l-purple-400" : ""} flex items-center gap-3 px-4 py-3 border-b border-gray-100 dark:border-gray-700 last:border-b-0 hover:bg-gray-50 dark:hover:bg-gray-700/40 transition-colors group`}
>
<div className="p-1 rounded-lg bg-gray-100 dark:bg-gray-700 shrink-0">
<MakerLogo
maker={makerKey(model.provider.name, model.model_name)}
className="size-5"
/>
</div>
<div className="flex-1 min-w-0">
<div className="flex items-center gap-2 min-w-0">
<span className="text-sm font-medium text-gray-900 dark:text-gray-100 truncate">
{modelDisplayName(model)}
</span>
{model.is_default && (
<span className="shrink-0 text-[10px] font-bold italic px-1.5 py-0.5 rounded-full bg-yellow-50 dark:bg-yellow-950/40 text-yellow-700 dark:text-yellow-300 border border-yellow-200 dark:border-yellow-800">
Default
</span>
)}
{model.is_recommended && (
<span className="shrink-0 text-[10px] font-bold italic px-1.5 py-0.5 rounded-full bg-purple-50 dark:bg-purple-950/40 text-purple-700 dark:text-purple-300 border border-purple-200 dark:border-purple-800">
Recommended
</span>
)}
<EffortPill effort={model.effort} size="sm" />
</div>
<div className="flex items-center gap-2 mt-0.5">
<span className="text-xs text-gray-400 dark:text-gray-500 shrink-0">
{modelMaker(model)}
</span>
<span className="text-gray-200 dark:text-gray-600">·</span>
<code className="text-xs text-gray-400 dark:text-gray-500 font-mono truncate">
{model.model_name}
</code>
</div>
</div>
{model.context_window && (
<span
className="hidden lg:inline-flex items-center gap-1 text-xs text-gray-400 dark:text-gray-500 shrink-0"
title={`${model.context_window.toLocaleString()} token context window`}
>
<Cpu className="size-3.5" />
{formatTokenCount(model.context_window)}
</span>
)}
{(model.input_cost_per_token || model.output_cost_per_token) && (
<div className="hidden md:flex items-center gap-2 text-xs text-gray-400 dark:text-gray-500 shrink-0">
<span>{formatCostPerMToken(model.input_cost_per_token)} in</span>
<span className="text-gray-200 dark:text-gray-600">·</span>
<span>{formatCostPerMToken(model.output_cost_per_token)} out</span>
</div>
)}
{region && (
<span
className={`hidden sm:inline-flex shrink-0 text-xs px-2 py-0.5 rounded-full border ${region.pill}`}
>
{region.label}
</span>
)}
<span
className={`shrink-0 text-xs font-medium px-2 py-0.5 rounded-full border ${
model.is_embedding
? "bg-violet-50 dark:bg-violet-950/40 text-violet-700 dark:text-violet-300 border-violet-200 dark:border-violet-800"
: "bg-blue-50 dark:bg-blue-950/40 text-blue-700 dark:text-blue-300 border-blue-200 dark:border-blue-800"
}`}
>
{model.is_embedding ? "Embedding" : "Inference"}
</span>
<div className="flex items-center gap-3 shrink-0">
{!model.is_available && (
<span className="text-xs text-gray-400 dark:text-gray-500">
Not available here
</span>
)}
{model.is_available && !model.is_embedding && (
<Link
to={chatHref}
onClick={(e) => e.stopPropagation()}
className="flex items-center gap-1 text-xs text-gray-400 dark:text-gray-500 hover:text-gray-900 dark:hover:text-gray-100 transition-colors"
>
<BotMessageSquare className="size-3.5" />
<span className="hidden sm:inline">Chat</span>
</Link>
)}
<Link
to={href}
className="flex items-center gap-1 text-xs font-medium text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 transition-colors"
>
View
<ChevronRight className="size-3.5" />
</Link>
</div>
</div>
);
};
// ─── ModelsGrid ───────────────────────────────────────────────────────────────
const ModelsGrid: React.FC<ModelsGridProps> = ({ models, loading }) => {
// Sort is excluded from the active-filter count: reordering hides nothing.
const collection = useCollectionFilters<{
availability: string;
type: string;
effort: string;
region: string;
provider: string;
sort: SortKey;
}>({
// Only what this deployment can run, by default: a model with no route
// on its inference backend (GPT on Amazon Bedrock) stays in the
// catalogue for the conversations and runs that name it.
defaults: {
availability: "available",
type: "all",
effort: "all",
region: "all",
provider: "all",
sort: "name_asc",
},
unfiltered: ["sort"],
view: "list",
});
const { filters, setFilter, matches } = collection;
// Makers of the loaded models. A model registered under the platform
// that serves it (Qwen3, Titan) is listed under the maker its id names.
const providerOptions = useMemo(() => {
const unique = [
...new Map(
models.map((m) => [makerKey(m.provider.name, m.model_name), modelMaker(m)]),
).entries(),
].filter(([key]) => key);
unique.sort((a, b) => a[1].localeCompare(b[1]));
return [
{ value: "all", label: "All makers" },
...unique.map(([value, label]) => ({ value, label })),
];
}, [models]);
// Dynamic region options derived from models that actually have a region
const regionOptions = useMemo(() => {
const unique = [
...new Set(
models
.map((m) => m.data_region)
.filter((r): r is DataRegion => r != null),
),
];
return [
{ value: "all", label: "All regions" },
...unique.sort().map((r) => ({
value: r,
label: dataRegionMeta(r)?.label ?? r.toUpperCase(),
})),
];
}, [models]);
const availabilityOptions = [
{ value: "available", label: "Available here" },
{ value: "unavailable", label: "Not available here" },
{ value: "all", label: "All models" },
];
const typeOptions = [
{ value: "all", label: "All types" },
{ value: "inference", label: "Inference" },
{ value: "embedding", label: "Embedding" },
];
// Listed strongest-first and labelled with the tier each provider fills,
// because "Deep" only means something once you know it is Opus and Sol.
// Built from MODEL_EFFORTS rather than from the loaded models so the bands
// keep their meaningful order and the vocabulary is the same whichever
// models happen to be registered.
const effortOptions = useMemo(
() => [
{ value: "all", label: "All effort tiers" },
...[...MODEL_EFFORTS].reverse().map((effort) => {
const meta = modelEffortMeta(effort)!;
return { value: effort, label: `${meta.label} — ${meta.examples}` };
}),
],
[],
);
const filtered = useMemo(() => {
const result = models.filter((m) => {
if (filters.availability === "available" && !m.is_available) return false;
Iif (filters.availability === "unavailable" && m.is_available) return false;
Iif (filters.type !== "all") {
if (filters.type === "embedding" && !m.is_embedding) return false;
if (filters.type === "inference" && m.is_embedding) return false;
}
Iif (filters.effort !== "all" && m.effort !== filters.effort) return false;
Iif (filters.region !== "all" && m.data_region !== filters.region)
return false;
Iif (
filters.provider !== "all" &&
makerKey(m.provider.name, m.model_name) !== filters.provider
)
return false;
return matches(
modelDisplayName(m),
m.model_name,
modelMaker(m),
m.effort ?? "",
modelEffortMeta(m.effort)?.label ?? "",
);
});
return sortModels(result, filters.sort);
}, [models, filters, matches]);
const totalProviders = useMemo(
() => new Set(models.map((m) => modelMaker(m))).size,
[models],
);
// Effort tiers covered, rather than regions: every registered model is
// served from the same region today, so that figure was always "1".
const totalEfforts = useMemo(
() => new Set(models.map((m) => m.effort).filter(Boolean)).size,
[models],
);
return (
<ResourceCollection<Model>
description="The catalogue of models registered for inference and embedding: what each costs, how much context it takes, how fast it answers, how current its knowledge is and which region it answers from. Effort is the tier a model occupies in its provider's lineup — Light, Balanced, Deep or Frontier — so a Claude model and an OpenAI one can be compared on the same axis. Models are the platform's own records rather than resources you create; agents, chats and evaluations all resolve to one of these."
stats={[
{
label: "models available",
value: models.filter((m) => m.is_available).length,
loading,
},
{ label: "makers", value: totalProviders, loading },
{ label: "effort tiers", value: totalEfforts, loading },
]}
shown={filtered.length}
search={{
value: collection.search,
onChange: collection.setSearch,
placeholder: "Search by name, model ID or maker…",
}}
filters={
<>
{models.some((m) => !m.is_available) && (
<FilterSelect
value={filters.availability}
onValueChange={(value) => setFilter("availability", value)}
placeholder="Availability"
options={availabilityOptions}
active={filters.availability !== "available"}
/>
)}
<FilterSelect
value={filters.type}
onValueChange={(value) => setFilter("type", value)}
placeholder="Type"
options={typeOptions}
active={filters.type !== "all"}
/>
<FilterSelect
value={filters.effort}
onValueChange={(value) => setFilter("effort", value)}
placeholder="Effort"
options={effortOptions}
active={filters.effort !== "all"}
/>
{regionOptions.length > 1 && (
<FilterSelect
value={filters.region}
onValueChange={(value) => setFilter("region", value)}
placeholder="Region"
options={regionOptions}
active={filters.region !== "all"}
/>
)}
<FilterSelect
value={filters.provider}
onValueChange={(value) => setFilter("provider", value)}
placeholder="Maker"
options={providerOptions}
active={filters.provider !== "all"}
/>
<SortSelect
value={filters.sort}
onChange={(value) => setFilter("sort", value)}
options={SORT_OPTIONS}
defaultValue="name_asc"
/>
</>
}
{...collection.toolbarProps}
items={filtered}
itemKey={(model) => model.id}
renderCard={(model) => <ModelCard model={model} />}
renderRow={(model) => <ModelRow model={model} />}
loading={loading}
empty={{
Icon: BrainCog,
title: "No models available.",
hint: "Contact your administrator to register LLM models.",
}}
emptyFilteredTitle="No models match your filters."
/>
);
};
export default ModelsGrid;
|