We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71c6727 commit 9f605e2Copy full SHA for 9f605e2
1 file changed
src/converter/gemini_fix.py
@@ -785,7 +785,10 @@ async def normalize_gemini_request(
785
# 1. 安全设置覆盖
786
if "tools" in result:
787
result["tools"] = _normalize_tools_for_internal_api(result.get("tools"))
788
- result["tools"] = _ensure_empty_tool_schema_for_claude(result.get("tools"), model)
+ # _ensure_empty_tool_schema_for_claude wraps tools in {"custom": ...} which is
789
+ # only understood by the GeminiCLI internal API, not Vertex AI (antigravity mode).
790
+ if mode == "geminicli":
791
+ result["tools"] = _ensure_empty_tool_schema_for_claude(result.get("tools"), model)
792
793
if "lite" in model.lower():
794
result["safetySettings"] = LITE_SAFETY_SETTINGS
0 commit comments