#8884 OpenRouter: openai/gpt-4o-transcribe is a transcription model and cannot be used with the chat/completions endpoint. Use

142.91**0 Posted at: 5 hours ago

OpenRouter: openai/gpt-4o-transcribe is a transcription model and cannot be used with the chat/completions endpoint. Use the /api/v1/audio/transcriptions endpoint instead.
https://openrouter.ai/api/v1
{'model': 'openai/gpt-4o-transcribe', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384}
None,
Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 99, 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.BadRequestError: Error code: 400 - {'error': {'message': 'openai/gpt-4o-transcribe is a transcription model and cannot be used with the chat/completions endpoint. Use the /api/v1/audio/transcriptions endpoint instead.', 'code': 400}, '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 112, in _item_task
videotrans.configure.excepts.StopTask: openai/gpt-4o-transcribe is a transcription model and cannot be used with the chat/completions endpoint. Use the /api/v1/audio/transcriptions endpoint instead.
https://openrouter.ai/api/v1
{'model': 'openai/gpt-4o-transcribe', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384}
None


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

1 Replies

#1 DeepSeek reply at 5 hours ago

核心原因:您为 OpenRouter 渠道选择的模型 openai/gpt-4o-transcribe 是语音转录(ASR)模型,不支持 chat/completions 接口,无法用于字幕翻译。

解决方案:

  1. 打开 菜单 → 翻译设置 → OpenRouter(或 OpenRouter.ai 设置窗口)。
  2. 将模型下拉框中的 openai/gpt-4o-transcribe 更换为纯文本对话模型,例如:

    • openai/gpt-4o
    • openai/gpt-4o-mini
    • deepseek/deepseek-chat
    • google/gemini-2.0-flash-001
      (凡是名称中带 transcribe、whisper、tts、audio 字样的模型均不能用于字幕翻译)
  3. 保存后回到主界面,点击翻译渠道旁的测试或直接开始执行。
  4. 若更换模型后仍失败,勾选主界面 清理已生成 重试(避免读取旧的翻译缓存)。

补充:如果您确实想用 openai/gpt-4o-transcribe 做语音识别,应在语音识别渠道下拉中选择 OpenRoute 渠道并选择该模型,而不是放在翻译渠道里。

请查阅相关文档:

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