#1577 For further information visit https://errors.pydantic.dev/2.10/v/extra_forbidden

119.122* Posted at: 1 day ago 👁18

无效的值或参数:1 validation error for ThinkingConfig
thinking_level
Extra inputs are not permitted [type=extra_forbidden, input_value='HIGH', input_type=str]

For further information visit https://errors.pydantic.dev/2.10/v/extra_forbidden:Traceback (most recent call last):

File "videotrans\translator\_base.py", line 77, in run
File "videotrans\translator\_base.py", line 137, 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 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 928, in run
File "videotrans\translator\_base.py", line 80, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_gemini.py", line 123, in _item_task
File "pydantic\main.py", line 214, in init
pydantic_core._pydantic_core.ValidationError: 1 validation error for ThinkingConfig
thinking_level
Extra inputs are not permitted [type=extra_forbidden, input_value='HIGH', input_type=str]

For further information visit https://errors.pydantic.dev/2.10/v/extra_forbidden



=
system:Windows-10-10.0.26200-SP0
version:v3.85
frozen:True
language:zh
root_dir:B:/win-videotrans

1 Replies

这个错误是由于 Gemini 翻译渠道的配置参数不兼容导致的。thinking_level 参数在当前版本中不被支持。

解决方法:

  1. 在软件主界面,点击 翻译设置 按钮。
  2. 在翻译渠道列表中,找到并选择 Gemini
  3. 点击 设置 按钮,检查配置表单中是否存在 thinking_level 或类似的“思考级别”参数。
  4. 如果存在此参数,请将其留空或删除其值,然后保存设置。
  5. 重新尝试翻译任务。

如果问题依旧,请暂时切换到其他翻译渠道(如 Google、ChatGPT 或 DeepSeek)来完成当前任务。

为了获得更准确的解决方案,请提供完整的日志文件(位于 B:/win-videotrans/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.

Donate: https://ko-fi.com/jianchang512

Trending Questions