mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 17:30:23 +08:00
feat(claude-code): 增加 TLS 指纹伪装、Cache TTL 统一、CLI 限制与流超时冷却
- 新增 curl_cffi Transport,支持真实浏览器 TLS 指纹伪装 (Chrome/Node.js) - 增加 Cache TTL Override 功能,强制统一 cache_control 类型防止行为指纹差异 - 增加 CLI-only 客户端限制,支持仅允许 Claude Code CLI 访问 - 池健康策略增加 stream timeout 计数与自动冷却机制 - OAuth 账号 Region 选择改为从 AWS API 动态获取,支持搜索和自定义输入 - 前端 PoolConfigDialog 增加对应配置 UI
This commit is contained in:
@@ -147,6 +147,18 @@ class ClaudeCodeAdvancedConfig(BaseModel):
|
||||
session_id_masking_enabled: bool = Field(
|
||||
False, description="是否启用会话 ID 伪装(固定 metadata.user_id 中 session 片段)"
|
||||
)
|
||||
cache_ttl_override_enabled: bool = Field(
|
||||
False, description="是否启用 Cache TTL 强制替换(统一所有请求的 cache_control 类型)"
|
||||
)
|
||||
cache_ttl_override_target: str = Field(
|
||||
"ephemeral",
|
||||
description="Cache TTL 目标类型: ephemeral (5min) 或 1h",
|
||||
pattern="^(ephemeral|1h)$",
|
||||
)
|
||||
cli_only_enabled: bool = Field(
|
||||
False,
|
||||
description="是否仅允许 Claude Code CLI 客户端访问(非 CLI 流量返回 403)",
|
||||
)
|
||||
|
||||
@model_validator(mode="after")
|
||||
def normalize_session_control(self) -> "ClaudeCodeAdvancedConfig":
|
||||
|
||||
Reference in New Issue
Block a user