API Error: Publisher Model ... NOT_FOUND after upgrade
Describe the bug
I just upgraded my local instance for the first time in a couple of weeks, using the go/gemini-cli-dogfood instructions again...
❯ gemini -s false -m gemini-2.5-pro-preview-06-05
... loads but then on first interaction ...
✕ API Error: Publisher Model `projects/alanblount-sandbox/locations/us-central1/pub
lishers/google/models/gemini-2.5-pro-preview-06-05` not found. (Status:
NOT_FOUND)
Looks like I'm missing configs somehow :(
Diagnostic Information
- CLI Version: unknown
- Git Commit: 2c6aae8
- Operating System: darwin v22.16.0
- Sandbox Environment: no sandbox
- Model Version: gemini-2.5-pro-preview-06-05
- Memory Usage: 170.0 MB
Fixed for me by setting the model
GEMINI_MODEL="gemini-2.5-flash-preview-05-20"
I think I can also fix by switching from vertex to google ai studio api endpoint
I imagine you should be able to utilize gemini-2.5-pro-preview-05-06 as well are you not?
@mboshernitsan is 06-05 not available on vertex?
It's available, but in location=global and not a specific region. I am using Vertex with GOOGLE_CLOUD_LOCATION=global
@zeroasterisk I believe this is stale
Stale