Skip to content

Commit 9b38b50

Browse files
committed
feat: upgrade default LLM to Pro when --deep flag is used and update CI Python versions to include 3.10.
1 parent 8890c43 commit 9b38b50

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.9", "3.11", "3.12"]
18+
python-version: ["3.10", "3.11", "3.12"]
1919

2020
steps:
2121
- name: Check out code

commitai/cli.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,11 @@ def generate_message(
206206
# 2. If --deep is passed, upgrade to gemini-3-pro-preview
207207
# (unless -m is explicitly distinct)
208208
if deep:
209-
# If user didn't explicitly change the default model string,
210-
# upgrade to Pro
211-
# If user explicitly set a model AND used --deep,
212-
# we respect the explicit model but could warn (or just use it)
213-
pass
214-
pass
209+
# Upgrade to Pro model if deep flag is set
210+
# We override the model unless the user explicitly chose a different one
211+
# (For simplicity here, we assume --deep implies pro)
212+
if model == "gemini-3-flash-preview":
213+
model = "gemini-3-pro-preview"
215214

216215
llm = _initialize_llm(model)
217216

0 commit comments

Comments
 (0)