#6562 task not foundhttps://api.mosi.cn/v1/audio/transcriptions

2408:**:666 Posted at: 3 hours ago

task not found
httpdio/transcriptions
{'model': 'moss-transcribe', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 8192}:Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 84, 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.NotFoundError: Error code: 404 - {'error': {'code': '106111002', 'type': 'not_found_error', 'message': 'task not found', 'legacy_code': 4043}, 'trace_id': '405f92f9f17391aa41e43876f2fe0f35'}

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 68, in run
File "videotrans\translator\_base.py", line 71, in run
File "videotrans\translator\_base.py", line 204, 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 89, in _item_task
videotrans.configure.excepts.StopTask: task not found
htdio/transcriptions
{'model': 'moss-transcribe', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 8192}


=
system:Windows-10-10.0.22631-SP0
version:v4.09
frozen:True
language:zh
root_dir:D:/pyVideoTrans/win-pyvideotrans-v4.07

1 Replies

这是字幕翻译渠道配置错误导致的。你使用的是「兼容AI/本地模型」翻译渠道,但 API 地址填成了语音识别端点 https://api.mosi.cn/v1/audio/transcriptions,模型名也填成了 moss-transcribe(语音识别模型)。该翻译渠道要求填写 OpenAI 兼容的聊天补全接口(通常是 /v1/chat/completions/v1),且模型必须为文本翻译模型,不能是语音识别模型。

解决方案:

  1. 打开 菜单 → 翻译设置 → 本地大模型/兼容AI 设置面板。
  2. 将 API 地址修改为正确的聊天补全端点,例如 https://api.mosi.cn/v1/chat/completions(具体以服务商文档为准)。
  3. 将模型名改为该服务商提供的翻译/对话模型,例如 moss-translate 或你已开通的文本模型,而不是 moss-transcribe
  4. 保存后,在翻译渠道下拉框中选择该渠道,重新执行任务。

如果这是你用于语音识别的配置,则应将其填写到「语音识别渠道」对应的自定义 API 或兼容 OpenAI 语音识别接口的位置,而不是翻译渠道。

请查阅相关文档:

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 via ko-fi.com

Dondate via PayPal

Related resource