#6340 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_tokens': 65536}: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_tokens': 65536}


=
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 渠道返回 404 参数错误,通常是因为所选模型在该平台上不存在或当前配置的模型名称不适用于字幕翻译任务。

错误日志中请求的模型是 gpt-4o-transcribe,这是 OpenAI 的语音识别模型,不是字幕翻译模型。如果你是在「翻译渠道」中选择了 302.AI,请把模型改为 302.AI 支持的翻译模型,例如 deepseek-v4-prodeepseek-v4-flash

请按以下步骤排查:

  1. 打开「菜单 → 翻译设置 → 302.AI」,确认 API 地址填写为 https://api.302.ai/v1,并确认已填写有效的 API Key。
  2. 在主界面「翻译渠道」下拉框选择 302.AI 后,检查旁边的「模型」下拉框,确保选择了 deepseek-v4-prodeepseek-v4-flash,不要选择 gpt-4o-transcribe
  3. 如果仍报错,尝试把「AI翻译渠道每批字幕行数」调小(如 10),避免因单次请求过大导致参数超限。
  4. 若仍然失败,请检查 302.AI 平台上该账户是否开通了对应模型权限,或更换为 DeepSeek 官方渠道(deepseek-v4-pro)测试。

如果以上方法无法解决,请提供软件安装目录下 logs/ 文件夹中最新的日志文件(复制底部约30行报错信息),并说明你使用的是语音识别还是字幕翻译功能。

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