feat(admin): group catalog models by kind

Add a display-only kinds map to the provider config. Each pathBaseUrls key
now appears in the admin catalog as an endpoint row. The Models page splits
a provider into one sub-section per kind.
This commit is contained in:
2026-11-10 12:24:34 +00:00
parent a4fda5f9cb
commit 085292143c
12 changed files with 301 additions and 139 deletions
+4
View File
@@ -698,6 +698,10 @@ export interface AdminCatalogModel {
priceSource: PriceSource
/** True for a ':free' suffix model (routes_unified.go) — display-only relabeling; billing still follows `priceSource` unchanged. */
displayFree?: boolean
/** Operator label from the provider's `kinds` map (for example 'reranking'); absent for an ordinary model. */
kind?: string
/** True for a pseudo-model row built from a `pathBaseUrls` key — not a routable model, never priced. */
endpoint?: boolean
aliases?: string[]
}