#6338 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': 'gemini-2.5-pro', '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.PermissionDeniedError: Error code: 403 - {'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': 'gemini-2.5-pro', '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 平台返回的请求参数错误(403, err_code -10003),并非软件本身故障。核心原因是发送给 302.AI 的模型或参数不被该平台接受。

请按以下顺序排查:

  1. 检查模型名称:302.AI 是聚合平台,不同模型名称可能与官方命名不同。请打开 菜单 → 翻译设置 → 302.AI,确认填写的模型名(如 gemini-2.5-pro)是 302.AI 平台实际支持的名称,且你的账户已开通该模型权限。可先换用 302.AI 平台上明确可用的模型,或联系 302.AI 客服确认准确模型 ID。
  2. 降低 max_tokens:报错信息中的 max_tokens: 65536 很可能超出该模型单次输出上限。请进入 302.AI 渠道设置,将 max token 改为较小值(如 8192 或 4096)后重试。
  3. 恢复 temperature 默认值:当前 temperature: 0.1 可能被该模型拒绝,请改为 1.0 或留空。
  4. 检查 API Key 权限和余额:确认 API Key 未过期、有余额,且对所选模型有访问权限。
  5. 更换模型:若上述均无效,请先切换到其他渠道(如 DeepSeek、OpenAI)或 302.AI 下的其他模型,确认是否可用。

若仍报错,请提供 302.AI 渠道设置页面的截图(含模型名、max token 设置),以便进一步分析。

请查阅相关文档:

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