mirror of
https://github.com/nubenetes/awesome-kubernetes.git
synced 2026-07-28 09:32:20 +00:00
fix: update Gemini grounding tool name to google_search to resolve API 400 error
This commit is contained in:
@@ -336,7 +336,7 @@ async def call_gemini_with_retry(prompt: str, response_format: str = "json", max
|
||||
# --- TOOL ENABLING (MCP-LIKE GROUNDING) ---
|
||||
payload = {
|
||||
"contents": [{"parts": [{"text": prompt}]}],
|
||||
"tools": [{"google_search_retrieval": {}}] if use_grounding else []
|
||||
"tools": [{"google_search": {}}] if use_grounding else []
|
||||
}
|
||||
|
||||
# TELEMETRY: Log Payload Size
|
||||
|
||||
Reference in New Issue
Block a user