#6339 Parameter error.Plase check your request parameters.https://api.302.ai/v1

2405:**:7e14 Posted at: 1 hour ago

Parameter error.Plase check your request parameters.
https://api.302.ai/v1
{'model': 'gpt-4o-transcribe', 'timeout': 300, 'temperature': 0.1, 'max_completion_tokens': 16384}:Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 77, 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': {'err_code': -10003, 'message': 'Parameter error.Plase check your request parameters.', 'message_cn': '参数错误。请检查您的请求参数。', 'message_jp': 'パラメーターのエラーです。リクエストパラメーターを確認してください。', 'type': 'api_error'}}

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 63, 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 82, in _item_task
videotrans.configure.excepts.StopTask: Parameter error.Plase check your request parameters.
https://api.302.ai/v1
{'model': 'gpt-4o-transcribe', 'timeout': 300, 'temperature': 0.1, 'max_completion_tokens': 16384}


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

1 Replies

该报错的直接原因是:302.AI 翻译渠道的“模型”填写成了语音识别模型 gpt-4o-transcribe,而翻译接口使用的是 Chat Completions 地址,302.AI 服务端无法识别该模型,返回 404 参数错误。

解决方法

  1. 打开 菜单 → 翻译设置 → 302.AI 设置
  2. 将模型修改为 302.AI 支持的翻译对话模型,例如:

    • deepseek-v4-pro
    • deepseek-v4-flash
  3. 确认 API 地址为:https://api.302.ai/v1
  4. 保存后在主界面重新用 302.AI 翻译渠道测试。

注意

  • 如果你本意是想用 302.AI 做语音识别,那么当前这个报错不是识别接口报错,而是翻译接口报错(日志中的 translator 模块触发的测试翻译)。语音识别应使用 302.AI 的语音识别渠道,并在对应面板填写识别专用模型(如 gpt-4o-transcribe),不要把该模型填到翻译渠道的模型框中。
  • 若修改后仍报错,请提供 logs/ 目录下最新的日志文件,以便进一步分析。
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