fix(admin): show kinds and endpoints in the providers panel

The provider accordion reads the overview response, not the catalog, so
the earlier change never reached it. Add kinds and endpoints to the
overview provider view and group the accordion rows by kind. Endpoint ids
now read gx10/v1/decide, without a doubled slash.
This commit is contained in:
2026-11-10 12:38:33 +00:00
parent 085292143c
commit 6fb048b599
9 changed files with 212 additions and 62 deletions
+4
View File
@@ -89,6 +89,10 @@ export interface AdminProviderView {
lastErr?: string
/** Sorted explicit∪discovered model ids (admin.go: adminProviderView.Models) — always an array, never omitted, even when empty. */
models: string[]
/** Display labels from the provider's `kinds` config, keyed by model id or endpoint path (admin.go: adminProviderView.Kinds). */
kinds?: Record<string, string>
/** pathBaseUrls keys (admin.go: adminProviderView.Endpoints) — display-only rows, not routable models. */
endpoints?: string[]
modelCount: number
/**
* Resolved metadata (context window, per-token cost — feature v0.23)