Skip to content

fix(agent): correct stale default-model comment (Gemma → Qwen3.5-35B-A3B) - #1810

Merged
kovtcharov merged 2 commits into
mainfrom
fix/agent-default-model-comment
Jun 22, 2026
Merged

kovtcharov merged 2 commits into
mainfrom
fix/agent-default-model-comment

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

The comment above the base Agent's model resolution claimed agents default to Gemma — but the code right below it is model=model_id or "Qwen3.5-35B-A3B-GGUF", so an agent with no explicit model_id actually gets Qwen3.5-35B-A3B. The comment also referenced a "0.5B model" that has nothing to do with this path. This wrong comment has repeatedly misled readers — and an automated PR reviewer — into documenting the agent default as Gemma. Corrected to match the code (and to note that gaia llm's Gemma default is a separate path). Comment-only; no behavior change.

Test plan

  • grep -n "model=model_id or" src/gaia/agents/base/agent.py shows the comment now says Qwen3.5-35B-A3B.
  • No code change — python -c "import ast; ast.parse(open('src/gaia/agents/base/agent.py').read())" parses.

…s Qwen3.5-35B-A3B)

The comment above AgentConfig(model=model_id or "Qwen3.5-35B-A3B-GGUF") claimed
'Use the configured default model (Gemma)' and mentioned a '0.5B model' — both
wrong. An agent with no model_id resolves to Qwen3.5-35B-A3B, not Gemma. The stale
comment repeatedly misled readers (and an automated PR reviewer) into documenting
the wrong default. Comment-only; behavior unchanged.
@github-actions

Copy link
Copy Markdown
Contributor

Summary

Accurate, well-scoped fix — approve. The comment above the base Agent's model resolution previously claimed agents default to Gemma and referenced an unrelated "0.5B model", but the code right below it is model=model_id or "Qwen3.5-35B-A3B-GGUF". The corrected comment now matches the code and usefully clarifies that the Gemma default belongs to the separate gaia llm path. I verified both claims: agent.py:516 resolves to Qwen3.5-35B-A3B-GGUF, and DEFAULT_MODEL_NAME = "Gemma-4-E4B-it-GGUF" (lemonade_client.py:119) is what gaia llm falls back to. Comment-only, zero behavior change.

Issues Found

🟢 Minor (optional) — comment runs to 3 lines (agent.py:512-514)
CLAUDE.md leans toward one-line WHY comments, but here the extra length earns its place: it documents a genuine footgun (two divergent model defaults on two code paths) that has repeatedly misled readers. No change needed — flagging only so it's a conscious choice rather than an oversight.

Strengths

  • Fixes a comment that the PR description notes has actively misled readers (and an automated reviewer) into mis-documenting the agent default — high signal-to-noise for a 3-line change.
  • The added parenthetical (agent default vs. gaia llm / DEFAULT_MODEL_NAME) pre-empts the exact confusion that caused the original error.
  • Scope-clean: single file, comment-only, no drive-by edits.

Verdict

Approve — no blocking issues. Test plan is appropriate for a comment-only change (no eval needed; this touches no LLM-affecting runtime path).

@kovtcharov
kovtcharov requested a review from itomek June 22, 2026 17:33
@kovtcharov
kovtcharov enabled auto-merge June 22, 2026 17:33
@kovtcharov
kovtcharov requested a review from itomek-amd June 22, 2026 20:48
@kovtcharov
kovtcharov disabled auto-merge June 22, 2026 20:48
@kovtcharov
kovtcharov enabled auto-merge June 22, 2026 20:48
@kovtcharov
kovtcharov added this pull request to the merge queue Jun 22, 2026
Merged via the queue into main with commit 4574523 Jun 22, 2026
43 checks passed
@kovtcharov
kovtcharov deleted the fix/agent-default-model-comment branch June 22, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants