#5209 FREE GPT API:Traceback (most recent call last): File "videotrans\translator\_base.py", line 72, in run File "videotran

13.231* Posted at: 3 hours ago

FREE GPT API:Traceback (most recent call last):
File "videotrans\translator\_base.py", line 72, in run
File "videotrans\translator\_base.py", line 142, in _run_srt
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 858, in run
File "videotrans\translator\_base.py", line 75, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openaicompat.py", line 78, in _item_task
videotrans.configure.excepts.TranslateSrtError: FREE GPT API


=
system:Windows-10-10.0.19045-SP0
version:v4.02
frozen:True
language:zh
root_dir:E:/AI/pyvideotrrans

1 Replies

原因:翻译渠道 API 返回了无效的 HTML 内容(通常是需要登录或验证的页面),而不是翻译结果。这表明您使用的 API 地址或密钥无效,该 API 服务可能已失效、需要登录或请求被拦截。

解决方案:

  1. 检查 API 配置:进入 菜单 → 翻译设置,检查您当前使用的翻译渠道(如兼容AI/本地模型、OpenAI ChatGPT等)的 API 地址和 API Key 是否正确。如果使用免费中转服务,建议更换为官方受支持的渠道(如 DeepSeek、阿里百炼、微软翻译等)。
  2. 更换翻译渠道:建议临时改用 Microsoft 翻译(免费、无需代理)或 DeepL(需密钥)来完成任务,确保翻译过程稳定。
  3. 网络代理:如果访问某些国外 API 需要代理,请在主界面“网络代理”处填写正确的代理地址(例如 http://127.0.0.1:7890)。
  4. 重试限制:在 高级选项 → 通用设置 中可调整“失败后重试次数”,但根本问题需修复 API 配置。

请查阅相关文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update. Dondate: ko-fi.com/jianchang512

Related resource

Similar issues already exist