#7775 该模型始终思考,不支持关闭思考;请使用 low、high 或 max。https://open.bigmodel.cn/api/paas/v4/

2602**84e Posted at: 15 hours ago

该模型始终思考,不支持关闭思考;请使用 low、high 或 max。
https://open.bigmodel.cn/api/paas/v4/
{'model': 'GLM-5.3-Flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384}:Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 98, in _item_task
File "videotrans\translator\_openaicompat.py", line 48, 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': {'code': '1210', 'message': '该模型始终思考,不支持关闭思考;请使用 low、high 或 max。'}}

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 75, in run
File "videotrans\translator\_base.py", line 72, in run
File "videotrans\translator\_base.py", line 155, 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 109, in _item_task
videotrans.configure.excepts.StopTask: 该模型始终思考,不支持关闭思考;请使用 low、high 或 max。
https://open.bigmodel.cn/api/paas/v4/
{'model': 'GLM-5.3-Flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 16384}


=
system:Windows-10-10.0.26200-SP0
version:v4.14
frozen:True
language:zh_CN
root_dir:D:/win-pyvideotrans-v4.14

1 Replies

#1 DeepSeek reply at 15 hours ago

该错误是智谱 API 返回的 400 报错:GLM-5.3-Flash 模型强制要求开启思考模式,且仅接受 low、high、max 三个档位,而 pyVideoTrans 尝试关闭思考模式(thinking 传了禁用值),导致参数被拒。

解决方案(按顺序尝试):

  1. 取消勾选 Thinking 复选框
    打开 菜单 → 翻译设置 → 智谱AI(GLM)设置窗口,将 Thinking(思考模式)复选框取消选中,保存后重试。若界面中该模型仍报同一错误,说明该模型不支持关闭,需改用下方方案。
  2. 更换为不强制思考的模型
    在智谱设置中,将模型名改为普通对话模型(如 glm-4-flash / glm-4-plus 等非强制思考模型),再测试翻译。GLM-5.3-Flash 属于强制思考类模型,仅在明确指定思考档位时才可用。
  3. 改用其他翻译渠道
    若必须使用智谱且上述无效,建议改用 DeepSeek、OpenAI 等渠道完成字幕翻译:

    • 菜单 → 翻译设置 → DeepSeek,填入 API Key 后,在翻译渠道下拉选择 DeepSeek 即可。
  4. 若仍报错,请提供 logs/ 目录下最新日志底部约30行信息以便进一步分析。

请查阅相关文档:

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