fix: 移除代理自动检测,改用直连模式

- 删除 base_client.py 中的 _detect_proxy/_get_proxy 代理检测逻辑
- 移除请求时动态注入 proxy 参数
- 设置 trust_env=False 避免读取系统/环境变量代理
- 新增 universal_llm 节点「令牌」输入,支持自定义 API Key

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
This commit is contained in:
o1key
2026-04-21 17:52:44 +08:00
co-authored by Claude Sonnet 4.5
parent 07f0c5ed5f
commit ba468f5ca0
3 changed files with 13 additions and 119 deletions
-2
View File
@@ -22,7 +22,6 @@ SIZE_DISPLAY_MAP = {
"4K": "4096",
}
# 轮询直连容器地址,绕过代理层
POLL_BASE_URL = "https://xrrh7tn08tfgwa8w-8188.container.x-gpu.com"
@@ -75,7 +74,6 @@ class FluxEditClient:
"""
size_value = SIZE_DISPLAY_MAP.get(size, size)
# 1. 提交任务(走代理)
task_id = self._submit_task_sync(image_bytes, mask_bytes, prompt, size_value)
if progress_callback:
progress_callback(f"任务已提交: {task_id[:8]}...")