feat(models): 路由预览显示 Key 白名单的模型映射匹配

- 后端返回 GlobalModel 的 model_mappings 正则模式
- 前端用映射模式匹配 Key 白名单,显示匹配的模型名
This commit is contained in:
fawney19
2026-01-15 02:36:00 +08:00
parent 4835ca13f5
commit 5d34426428
3 changed files with 89 additions and 5 deletions

View File

@@ -707,6 +707,7 @@ export interface ModelRoutingPreviewResponse {
global_model_name: string
display_name: string
is_active: boolean
global_model_mappings: string[] // GlobalModel 的模型映射规则(正则模式)
providers: RoutingProviderInfo[]
total_providers: number
active_providers: number