#6169 请求参数不正确:Error code: 400 - {'error': {'message': 'google/chirp-3 is a transcription model and cannot be used with the cha

103.81* Posted at: 2 hours ago

请求参数不正确:Error code: 400 - {'error': {'message': 'google/chirp-3 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_3HDE3gd4ubM44a0xR3MpEOeRVXg'}:Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 970, in run
File "videotrans\translator\_base.py", line 102, 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 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 58, in _item_task
File "openai\_utils\_utils.py", line 286, in wrapper
File "openai\resources\chat\completions\completions.py", line 1192, in create
File "openai\_base_client.py", line 1259, in post
File "openai\_base_client.py", line 1047, in request
openai.BadRequestError: Error code: 400 - {'error': {'message': 'google/chirp-3 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_3HDE3gd4ubM44a0xR3MpEOeRVXg'}


=
system:Windows-10-10.0.22631-SP0
version:v3.96
frozen:True
language:zh
root_dir:D:/pyVideoTrans/V3.96

1 Replies

您选择的 OpenRouter 模型 google/chirp-3 是语音识别模型,无法用于文本翻译(chat/completions 端点),必须换为文本生成模型。

解决方法:

  1. 打开 菜单 → 翻译设置 → OpenRouter 设置
  2. 将模型名从 google/chirp-3 改为一个文本模型,例如 google/gemini-2.0-flashanthropic/claude-3.5-sonnet(具体可用模型列表可在 OpenRouter 官网查看)。
  3. 保存后重试翻译。

若仍不成功,可改用其他翻译渠道(如 Google 翻译、DeepSeek、ChatGPT 等)。

请查阅相关文档:

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