From 5a38b6bc045377ffbe2f75b3edf49e9c6ebad3db Mon Sep 17 00:00:00 2001 From: RCD <90105158+Finesssee@users.noreply.github.com> Date: Tue, 20 Jan 2026 10:40:07 +0700 Subject: [PATCH] fix(executor): stop rewriting thinkingLevel for gemini Remove automatic thinkingLevel -> thinkingBudget:-1 conversion for non-gemini-3 models in antigravity executor. Cherry-picked from 1d2fe553. --- internal/runtime/executor/antigravity_executor.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/internal/runtime/executor/antigravity_executor.go b/internal/runtime/executor/antigravity_executor.go index 4d792ba6..cc97b678 100644 --- a/internal/runtime/executor/antigravity_executor.go +++ b/internal/runtime/executor/antigravity_executor.go @@ -1968,13 +1968,6 @@ func geminiToAntigravity(modelName string, payload []byte, projectID string, str template, _ = sjson.Delete(template, "request.safetySettings") template, _ = sjson.Set(template, "request.toolConfig.functionCallingConfig.mode", "VALIDATED") - if !strings.HasPrefix(modelName, "gemini-3-") { - if thinkingLevel := gjson.Get(template, "request.generationConfig.thinkingConfig.thinkingLevel"); thinkingLevel.Exists() { - template, _ = sjson.Delete(template, "request.generationConfig.thinkingConfig.thinkingLevel") - template, _ = sjson.Set(template, "request.generationConfig.thinkingConfig.thinkingBudget", -1) - } - } - if strings.Contains(modelName, "claude") { gjson.Get(template, "request.tools").ForEach(func(key, tool gjson.Result) bool { tool.Get("functionDeclarations").ForEach(func(funKey, funcDecl gjson.Result) bool {