Migrate Google backend from deprecated google-generativeai to google-genai SDK with grounding support

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Ubuntu 2026-02-24 04:44:44 +00:00
commit 6e2d956be6
7 changed files with 45 additions and 58 deletions

View file

@ -90,6 +90,7 @@ class LLMConfig:
)
use_system_prompt: bool = True # Toggle to disable sending system prompt
web_search: bool = False # Enable web search (Open WebUI feature)
google_grounding: bool = False # Enable Google Search grounding (Gemini only)
@dataclass