antigravity-cli: google/ model prefix is passed to agy verbatim

Open
#4,568 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@ElhaanDaud is already working on this.

Since Dec 3, 2026.

  • #4600 by @ElhaanDaud — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
25/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
cli

Research direction

Start in the antigravity-cli code path at parse_model_name and run(), which the issue identifies as handling the google/ prefix. Compare the behavior with the existing gemini/ handling and the approach mentioned in issue #4383. Done means google/... is either stripped before agy receives the model or rejected with a clear message directing users to gemini/<model>; linked pull request #4600 is already open.

Written by the indexing model from the issue text.

Description

Problem

antigravity-cli passes a google/-prefixed model to agy verbatim when LiteLLM does not know the model:

harbor run -p <task> -a antigravity-cli -m google/gemini-4-hydrogen --ak version=1.5.21 --ak reasoning_effort=high

agy is started with --model "google/gemini-4-hydrogen" and fails:

--effort is not supported for model "google/gemini-4-hydrogen"

gemini/gemini-4-hydrogen works because LiteLLM strips gemini/. For google/..., parse_model_name returns (None, "google/gemini-4-hydrogen") (LiteLLM has no google provider and does not know the model), and run() accepts provider None and keeps the prefix. The same happens for known models, e.g. google/gemini-2.5-pro parses to (None, "google/gemini-2.5-pro").

Found while running Harbor 0.27.0 with agy 1.5.21 for a benchmark run.

Expected

Either strip a leading google/ (as run() already treats google as a supported provider name, and as #4383 did for openclaw) or reject it with a clear message pointing to gemini/<model>.

Drafted with AI assistance (Claude Code) and reviewed before posting.

Dominant language
Python
Stars
5.6k
Forks
1.9k
Avg merge
1d 17h
Merged PRs (30d)
156

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from harbor-framework/harbor

All issues in harbor-framework/harbor

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.