Commit Graph
3 Commits
Author SHA1 Message Date
lukaszraczyloandGitHub f1633666ff fix(discovery): isolate each modelBaseUrls upstream's timeout (#24)
Discovery and metadata polled the upstreams one after another on one
shared context. A hanging modelBaseUrls upstream used up the deadline,
and the whole provider failed again.

Query all upstreams concurrently. Give each modelBaseUrls upstream its
own context with 3/4 of the remaining time, or 30s without a deadline.
A child timeout is recorded in upstreamErrors and skipped. Only a
baseUrl failure, or a cancelled or expired parent context, fails the
listing. The result order stays baseUrl first, then the sorted upstreams.
2026-11-28 02:26:16 +00:00
lukaszraczyloandGitHub bfdffc2ab0 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.
2026-11-28 02:13:22 +00:00
lukaszraczyloandGitHub 7fade3cdee feat(models): advertise max_context_length and query every modelBaseUrls upstream (#22)
GET /v1/models now emits max_context_length next to the other context
fields, so a downstream gateway can read it through metadataPath. The
field is omitted when the context window is unknown.

Discovery and metadataPath now query baseUrl and each distinct
modelBaseUrls upstream. The gateway keeps an id only from the upstream
that serves it. Discovery fails when any upstream fails and keeps the
last-known set. Metadata keeps the ids of the upstreams that answered.
2026-11-28 01:19:54 +00:00