mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 09:20:22 +08:00
feat: ProxyNode 代理节点管理系统与 OpenAI Responses API 解析增强
ProxyNode 系统:新增 aether-proxy(Rust)海外 VPS 代理组件,后端实现节点注册/心跳/ HMAC 认证/健康检测调度器/模块化集成,前端新增代理节点管理页面。ProxyConfig 支持 node_id 模式,http_client 支持 HMAC 签名代理 URL 构建与 TTL 缓存。 OpenAI CLI 解析器:适配 Responses API 格式,支持 input_tokens/output_tokens 提取、 output[].content[].text 文本解析、response.completed 流式事件 usage 嵌套结构。
This commit is contained in:
@@ -209,6 +209,17 @@ class ProviderNotAvailableException(ProviderException):
|
||||
self.upstream_response = upstream_response
|
||||
|
||||
|
||||
class ProxyNodeUnavailableError(ProviderException):
|
||||
"""代理节点不可用(ProxyNode 离线/不存在/不健康)"""
|
||||
|
||||
def __init__(self, message: str, node_id: str | None = None):
|
||||
super().__init__(
|
||||
message=message,
|
||||
provider_name=None,
|
||||
proxy_node_id=node_id,
|
||||
)
|
||||
|
||||
|
||||
class ProviderTimeoutException(ProviderException):
|
||||
"""提供商请求超时"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user