feat: Seedance 视频/音频改用 R2 预签名上传,移除插件内凭证

- 新增 utils/r2_uploader.py:通过 o1key 后端预签名接口上传视频/音频,零 R2 凭证
- seedance_video.py:视频、音频均改为 await upload_video/upload_audio,移除 base64 inline 编码
- 删除 doubao-seedance-2-0-fast 模型选项
- .config 加入 .gitignore,停止 git 追踪,防止 API Key 泄露
- base_client.py:新增系统代理自动检测(Windows 注册表 / macOS networksetup)
This commit is contained in:
Jony
2026-04-21 00:10:55 +08:00
parent c4bb8d9724
commit 07f0c5ed5f
9 changed files with 276 additions and 173 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ CONFIG_FILE = os.path.join(PLUGIN_ROOT, ".config")
# ============ API 基础配置 ============
# 所有 API 客户端的统一基础 URL
# 可通过环境变量 O1KEY_API_BASE_URL 覆盖
DEFAULT_API_BASE_URL = "https://vip.o1key.com"
DEFAULT_API_BASE_URL = "https://api.o1key.com"
def load_config(config_path: Optional[str] = None) -> Dict[str, str]: