fix(admin): show aliases, guard the provider filter, tolerate failing upstreams (#23)

* fix(admin): attach model aliases to the model their target resolves to

The catalog grouped aliases by the raw target string and looked them up by
canonical provider/model id. A bare target never matched, so no model card
listed its aliases. Each alias now keys on the canonical id that the
registry resolves its target to. The alias view gains an additive
resolvedTarget field.

Model-id cells in the overview, usage and panels now show an alias badge
with the target, using the catalog alias list.

* fix(webui): omit the provider filter select until providers load

* fix(discovery): tolerate failing modelBaseUrls upstreams

A modelBaseUrls upstream that fails /v1/models must not fail the provider.
Discovery now fails only when baseUrl fails. The explicit models of the
failing upstream stay listed, and the other upstreams still merge.

The admin overview reports each failed upstream in the additive
upstreamErrors field. The registry logs it at most once per 10 minutes
per provider. The README states the new semantics.

* chore(webui): regenerate admin assets

Rebuilt with make admin-ui for the alias badge and the provider filter changes.

* style(auth): order authStore fields for fieldalignment

golangci-lint's fieldalignment check reported 240 leading pointer bytes on authStore where 232 is optimal. The bool anonymousAnyKey moves next to the mutexes. No behaviour change.
This commit is contained in:
2026-11-28 02:13:22 +00:00
committed by GitHub
parent 7fade3cdee
commit bfdffc2ab0
19 changed files with 493 additions and 103 deletions
+6 -3
View File
@@ -2401,9 +2401,12 @@ providers:
`modelBaseUrls` read the body for this purpose.
- **Discovery and `metadataPath`** query `baseUrl` and every distinct
`modelBaseUrls` upstream, one request per upstream. An id is taken only from
the upstream its requests route to. Discovery fails as a whole when any
upstream fails, keeping the last-known set; metadata keeps the ids of the
upstreams that answered. `modelBaseUrls` ids stay declared models.
the upstream its requests route to. Discovery fails as a whole only when `baseUrl`
fails, keeping the last-known set. A failing `modelBaseUrls` upstream does not
degrade the provider: its explicit `models` stay served, the other upstreams'
ids still merge, and the admin overview lists it under `upstreamErrors` (also
logged, at most once per 10 minutes). Metadata keeps the ids of the upstreams
that answered. `modelBaseUrls` ids stay declared models.
- **Admin catalog**: each `pathBaseUrls` key appears as a pseudo-model row
(`gx10/v1/decide`). It is display only and never routable as a model.
`kinds` labels a model id or a path key. The Models page then groups the