设置页新增AI Tab:保险丝/grok工具/模型治理迁入
CI / test (push) Successful in 28s

This commit is contained in:
2026-07-16 12:32:21 +08:00
parent 6a7757ae2f
commit d987400a5b
6 changed files with 396 additions and 125 deletions
+6
View File
@@ -1,6 +1,7 @@
import { request } from './request'
import type {
AiCallLog,
AiCatalogModel,
AiChannel,
AiContentLog,
AiKey,
@@ -98,6 +99,11 @@ export function listAiModels(): Promise<AiModel[]> {
return request<{ items: AiModel[] }>('/ai-models').then((r) => r.items)
}
/** 聚合模型目录(含能力,启用渠道去重;不受「过滤弃用」影响),黑名单添加弹窗用 */
export function listAiModelCatalog(): Promise<AiCatalogModel[]> {
return request<{ items: AiCatalogModel[] }>('/ai-model-catalog').then((r) => r.items)
}
// ---- 网关全局设置 ----
export function getAiSettings(): Promise<AiSettings> {