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:
@@ -513,6 +513,9 @@ class EndpointAPIKeyResponse(BaseModel):
|
||||
allowed_models: list[str] | None = None
|
||||
capabilities: dict[str, bool] | None = Field(default=None, description="Key 能力标签")
|
||||
|
||||
# OAuth 相关
|
||||
oauth_expires_at: int | None = Field(default=None, description="OAuth Token 过期时间(Unix 时间戳)")
|
||||
|
||||
# 缓存与熔断配置
|
||||
cache_ttl_minutes: int = Field(default=5, description="缓存 TTL(分钟),0=禁用")
|
||||
max_probe_interval_minutes: int = Field(default=32, description="熔断探测间隔(分钟)")
|
||||
|
||||
Reference in New Issue
Block a user