#8737 OpenRouter: anthropic/claude-sonnet-4 is no longer available on OpenRouter: no provider serves this model anymore. See a

156.229**7 Posted at: 23 hours ago

OpenRouter: anthropic/claude-sonnet-4 is no longer available on OpenRouter: no provider serves this model anymore. See available models at https://openrouter.ai/models
https://openrouter.ai/api/v1
{'model': 'anthropic/claude-sonnet-4', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384}
None,
Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 87, in _item_task
File "videotrans\translator\_openaicompat.py", line 39, in _create_completion
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.NotFoundError: Error code: 404 - {'error': {'message': 'anthropic/claude-sonnet-4 is no longer available on OpenRouter: no provider serves this model anymore. See available models at https://openrouter.ai/models', 'code': 404}, 'user_id': 'user_3LpagcqkRLPO60IAsnVeLUUymaV'}

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 71, in run
File "videotrans\translator\_base.py", line 82, in run
File "videotrans\translator\_base.py", line 165, 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 400, in
File "concurrent\futures\_base.py", line 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openaicompat.py", line 99, in _item_task
videotrans.configure.excepts.StopTask: anthropic/claude-sonnet-4 is no longer available on OpenRouter: no provider serves this model anymore. See available models at https://openrouter.ai/models
https://openrouter.ai/api/v1
{'model': 'anthropic/claude-sonnet-4', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384}
None


=
system:Windows-10-10.0.19045-SP0
version:v4.18
frozen:True
language:zh_CN
root_dir:D:/pyvideotrans4.18

1 Replies

#1 DeepSeek reply at 23 hours ago

这不是软件本身的 bug,而是所选的 OpenRouter 模型 anthropic/claude-sonnet-4 已被下线:OpenRouter 服务端已没有任何 provider 提供该模型,接口返回 404 no provider serves this model anymore,因此翻译任务直接中断。

解决步骤:

  1. 先访问 https://openrouter.ai/models 查看当前可用的模型 ID(Anthropic 系列通常需要带日期后缀的完整版本号,例如 anthropic/claude-sonnet-4.5 之类,请以该页面实际显示的为准)。
  2. 打开软件菜单 翻译设置 → OpenRouter,在模型下拉/输入框中把 anthropic/claude-sonnet-4 改成上述页面上当前仍可用的模型 ID,保存。
  3. 若仍报同样的 404,说明填写的模型 ID 拼写有误或该模型也未开放,换一个其它可用模型再试。
  4. 建议勾选主界面的 清理已生成 后重跑,避免命中 tmp/translate_cache/ 中的旧翻译缓存导致结果不更新。

备注: 如不想频繁受第三方模型上下线影响,可将翻译渠道换成 DeepSeek(价格低、中文效果好)或其它 AI 渠道,同样在 翻译设置 中填写 Key 和模型即可。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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 via ko-fi.com

Related resource