mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 09:20:22 +08:00
feat: OAuth 密钥编辑时显示到期时间和重新授权按钮
- 后端 EndpointAPIKeyResponse 新增 oauth_expires_at 字段 - 从加密的 auth_config 中解密并提取 OAuth Token 到期时间 - 前端编辑已授权的 OAuth 密钥时显示"重新授权"按钮 - 在按钮旁显示 Token 到期时间
This commit is contained in:
@@ -247,6 +247,8 @@ export interface EndpointAPIKey {
|
||||
// 模型过滤规则(仅当 auto_fetch_models=true 时生效)
|
||||
model_include_patterns?: string[] // 模型包含规则(支持 * 和 ? 通配符)
|
||||
model_exclude_patterns?: string[] // 模型排除规则(支持 * 和 ? 通配符)
|
||||
// OAuth 相关
|
||||
oauth_expires_at?: number | null // OAuth Token 过期时间(Unix 时间戳)
|
||||
}
|
||||
|
||||
// 按格式的健康度数据
|
||||
|
||||
Reference in New Issue
Block a user