#7042 请求的资源不存在,请检查模型名称或API地址 Error code: 404 - {'error': {'message': 'Not found the model moonshot-v1-8k or Permission denied'

122.238**0 Posted at: 2 hours ago

请求的资源不存在,请检查模型名称或API地址 Error code: 404 - {'error': {'message': 'Not found the model moonshot-v1-8k or Permission denied', 'type': 'resource_not_found_error'}}:Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 907, in run
File "videotrans\translator\_base.py", line 80, in run
File "videotrans\translator\_base.py", line 143, 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\_localllm.py", line 54, 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': 'Not found the model moonshot-v1-8k or Permission denied', 'type': 'resource_not_found_error'}}


=
system:Windows-10-10.0.19045-SP0
version:v3.84
frozen:True
language:zh
root_dir:E:/Pyvideotrans

1 Replies

#1 DeepSeek reply at 2 hours ago

报错原因:你配置的翻译渠道(兼容AI/本地模型)中填写的模型名称 moonshot-v1-8k 已不存在,或你的 API 密钥没有调用该模型的权限(Moonshot AI 已停用/更名该模型)。

解决方案

  1. 打开软件顶部菜单:设置 → 翻译设置 → 兼容AI/本地模型
  2. 检查「模型名称」字段,将 moonshot-v1-8k 改为 Moonshot AI 当前可用的模型,例如:

    • moonshot-v1-8k-v2
    • moonshot-v1-32k
    • moonshot-v1-128k
    • moonshot-v1-auto
      (具体以 Moonshot 开放平台当前列表为准,可登录 https://platform.moonshot.cn 查看)
  3. 确认 API 地址填写正确(官方地址为 https://api.moonshot.cn/v1)。
  4. 确认 API Key 有效且账户有余额。
  5. 保存后重新执行任务。

另外,你当前软件版本为 v3.84,较旧,建议升级到最新版本以兼容新模型及接口。升级后请在软件内重新配置该渠道。

请查阅相关文档:

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