#2565 openai.NotFoundError: Error code: 404 - {'error': {'message': 'No endpoints found matching your data policy (Free model

176.100* Posted at: 1 day ago 👁32

请求的资源不存在,请检查模型名称或API地址 Error code: 404 - {'error': {'message': 'No endpoints found matching your data policy (Free model publication). Configure: https://openrouter.ai/settings/privacy', 'code': 404}}:Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 922, in run
File "videotrans\translator\_base.py", line 78, in run
File "videotrans\translator\_base.py", line 137, 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 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openrouter.py", line 57, in _item_task
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\chat\completions\completions.py", line 1156, in create
File "openai\_base_client.py", line 1259, in post
File "openai\_base_client.py", line 1047, in request
openai.NotFoundError: Error code: 404 - {'error': {'message': 'No endpoints found matching your data policy (Free model publication). Configure: https://openrouter.ai/settings/privacy', 'code': 404}}


=
system:Windows-10-10.0.20348-SP0
version:v3.92
frozen:True
language:zh
root_dir:C:/win-pyvideotrans-v3.92

1 Replies

此错误表明您在 pyVideoTrans 中配置的 OpenRouter.ai 翻译渠道存在问题。错误信息明确指出:“No endpoints found matching your data policy (Free model publication)”,即 没有找到符合您数据策略(免费模型发布)的端点

核心原因与解决方案:

OpenRouter.ai 要求用户在使用其免费模型时,必须在账户设置中明确配置数据隐私策略。您当前的设置不符合要求,导致 API 调用被拒绝。

请按以下步骤解决:

  1. 登录 OpenRouter.ai 账户:访问 https://openrouter.ai/settings/privacy
  2. 配置数据策略:在隐私设置页面,找到与“Free model publication”(免费模型发布)相关的选项。您需要同意或启用允许您的数据用于改进免费模型的策略。具体选项可能为勾选框或开关。
  3. 保存设置:完成配置后,确保保存更改。
  4. 返回 pyVideoTrans 重试:在软件中再次尝试使用 OpenRouter.ai 进行翻译。

如果上述步骤无法解决问题,或者您不想配置此策略,可以考虑:

  • 切换翻译渠道:在 pyVideoTrans 的翻译设置中,暂时改用其他可用的渠道,如 Google、DeepSeek、Gemini 等。
  • 检查模型名称:确保在软件中填写的 OpenRouter.ai 模型名称准确无误,且该模型当前可用。

请查看更多参考文档:

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.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions