feat: supports thinking level of google gemini (#4104)

* feat: supports thinking level of google gemini

- Updated google-genai version to >=1.56.0 in pyproject.toml and requirements.txt.
- Changed model configuration from "gemini-1.5-flash" to "gemini-3-flash-preview" in default.py.
- Enhanced thinking configuration handling in gemini_source.py to support new parameters for Gemini 3 models.

* fix: standardize thinking level configuration in default.py and gemini_source.py

- Updated the thinking level values in default.py to uppercase for consistency.
- Enhanced gemini_source.py to validate the thinking level and default to "HIGH" if an invalid value is provided.
This commit is contained in:
Soulter
2025-12-18 17:15:01 +08:00
committed by GitHub
parent 8a0f865af1
commit 94591d965b
4 changed files with 60 additions and 35 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ dingtalk-stream>=0.22.1
docstring-parser>=0.16
faiss-cpu==1.10.0
filelock>=3.18.0
google-genai>=1.14.0
google-genai>=1.56.0
lark-oapi>=1.4.15
lxml-html-clean>=0.4.2
mcp>=1.8.0