mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-11-26 10:06:31 +00:00
refactor(webui): reuse entity links and formatters; drop stale component comments
This commit is contained in:
@@ -5,7 +5,7 @@ import type { ModelCatalogRow } from '@/lib/model-table-columns'
|
||||
* (lib/model-table-columns.ts's ModelCatalogRow, built from GET
|
||||
* /admin/api/catalog + usage/models + performance) to whichever match a
|
||||
* free-text query (redesign-plan.md section 3.1's Models page `q` param) —
|
||||
* against the canonical id (ModelChip's own copyable text) OR any of the
|
||||
* against the canonical id (the copyable model name) OR any of the
|
||||
* model's own aliases, case-insensitively. An empty/whitespace-only query
|
||||
* is "no filter", returning `rows` unchanged (the pre-redesign
|
||||
* filterModelsByPrefix this function replaces made the identical choice).
|
||||
|
||||
@@ -66,7 +66,7 @@ export function providerRateStatus(rate: number | null): ProviderRateStatus {
|
||||
|
||||
/**
|
||||
* isModelDegraded reports whether a model's OWN day-window rate should
|
||||
* show a badge beside its ModelChip at all — the spec's "only when that
|
||||
* show a badge beside its model name at all — the spec's "only when that
|
||||
* model is degraded (<99% w/ attempts>0)" rule: a healthy or no-traffic
|
||||
* model gets no badge, so the accordion is not cluttered with a badge
|
||||
* beside every single model.
|
||||
|
||||
Reference in New Issue
Block a user