Skip to content

Commit 991a8e3

Browse files
committed
fix(antigravity): remove unreachable is_claude condition in thinking config
Claude models always return early before reaching the model-specific budgets section, making the `or is_claude` condition dead code.
1 parent 0bb8a52 commit 991a8e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rotator_library/providers/antigravity_provider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2305,8 +2305,8 @@ def _get_thinking_config(
23052305
"include_thoughts": True,
23062306
}
23072307

2308-
# Model-specific budgets
2309-
if "gemini-2.5-pro" in model or is_claude:
2308+
# Model-specific budgets (Claude already returned above)
2309+
if "gemini-2.5-pro" in model:
23102310
budgets = {"low": 8192, "medium": 16384, "high": 32768}
23112311
elif "gemini-2.5-flash" in model:
23122312
budgets = {"low": 6144, "medium": 12288, "high": 24576}

0 commit comments

Comments
 (0)