#5057 openai.InternalServerError: Error code: 500 - {'error': {'message': 'codex渠道模型(如gpt-5.5)不支持非标准格式,请更换成codex之类的客户端,调用的api网

27.203* Posted at: 14 hours ago

codex渠道模型(如gpt-5.5)不支持非标准格式,请更换成codex之类的客户端,调用的api网址不要加后缀: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 75, in _item_task
File "openai\_utils\_utils.py", line 298, in wrapper
File "openai\resources\chat\completions\completions.py", line 1215, in create
File "openai\_base_client.py", line 1332, in post
File "openai\_base_client.py", line 1105, in request
openai.InternalServerError: Error code: 500 - {'error': {'message': 'codex渠道模型(如gpt-5.5)不支持非标准格式,请更换成codex之类的客户端,调用的api网址不要加后缀', 'type': 'upstream_error', 'param': '', 'code': 'model_error'}}


=
system:Windows-10-10.0.26200-SP0
version:v4.01
frozen:True
language:zh
root_dir:E:/software/PYvideo

1 Replies

错误原因:你使用的AI翻译渠道(OpenAI兼容接口)的API地址格式不正确,或者所选模型名称不被该渠道支持。服务器返回的错误信息明确指出“codex渠道模型不支持非标准格式,请调用的api网址不要加后缀”。

解决方案

  1. 检查API地址:在 菜单 → 翻译设置 中找到你当前使用的AI渠道(如OpenAI/ChatGPT、兼容AI/本地模型等)。保证“API地址”仅填写基础URL,不要包含多余路径后缀(如 /v1/chat/completions),例如正确的格式应为:

    • https://api.openai.com
    • http://127.0.0.1:11434 (Ollama)
    • 如果你使用的是特殊第三方服务,请参考其文档填写不带路径的根地址。
  2. 检查模型名称:确保模型名称正确填写(如在OpenAI渠道中填gpt-4ogpt-4-turbo等,不要填gpt-5.5这类不存在的名称)。部分服务可能要求特定命名格式,请查阅你的API提供商文档。
  3. 更换翻译渠道:如果问题持续,可以尝试改用其他免费或已配置好的渠道(如微软翻译、DeepSeek等),避免使用该不兼容的第三方服务。
  4. 测试连通性:修改后点击“试听”或运行一次小测试(如单个视频翻译)验证是否报错消失。

如仍无法解决,请提供logs/目录下最新日志中的完整报错(底部约30行)以便进一步分析。

请查阅相关文档:

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