mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 09:20:22 +08:00
feat(models): 添加全局 Key 白名单数据支持模型映射实时匹配
- 新增 GlobalKeyWhitelistItem 类型定义 - 路由预览 API 返回 all_keys_whitelist 字段,包含所有活跃 Provider 的 Key 白名单 - 前端 ModelMappingsTab 改用全局白名单数据进行实时匹配
This commit is contained in:
@@ -687,6 +687,18 @@ export interface RoutingProviderInfo {
|
||||
active_endpoints: number
|
||||
}
|
||||
|
||||
/**
|
||||
* 全局 Key 白名单项(用于前端实时匹配)
|
||||
*/
|
||||
export interface GlobalKeyWhitelistItem {
|
||||
key_id: string
|
||||
key_name: string
|
||||
masked_key: string
|
||||
provider_id: string
|
||||
provider_name: string
|
||||
allowed_models: string[]
|
||||
}
|
||||
|
||||
/**
|
||||
* 模型请求链路预览响应
|
||||
*/
|
||||
@@ -700,4 +712,5 @@ export interface ModelRoutingPreviewResponse {
|
||||
active_providers: number
|
||||
scheduling_mode: string
|
||||
priority_mode: string
|
||||
all_keys_whitelist: GlobalKeyWhitelistItem[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user