mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-11-26 10:06:31 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user