模型黑名单与密钥模型白名单界面、分组填入、删除弹窗排版
CI / test (push) Successful in 27s
Release / release (push) Successful in 26s

This commit is contained in:
Wang Defa
2026-07-12 17:44:46 +08:00
parent 5464d2dfea
commit 94fbe62e4c
10 changed files with 254 additions and 40 deletions
+9
View File
@@ -946,6 +946,8 @@ export interface AiKey {
name: string
tail: string
group: string
/** 模型白名单;null/空 = 不限,非空时网关仅放行列表内模型 */
models: string[] | null
enabled: boolean
lastUsedAt: string | null
/** 内容日志开启截止时间;null = 永关(默认,红线),开启必须限时到期自动停写 */
@@ -991,6 +993,13 @@ export interface AiModelCacheItem {
syncedAt: string
}
/** 模型黑名单条目:拉黑即全渠道剔除,同步 / 探测不再入库 */
export interface AiModelBlacklistItem {
id: number
name: string
createdAt: string
}
/** 调用日志:仅元数据与 token 用量 */
export interface AiCallLog {
id: number