gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

API Error: Publisher Model ... NOT_FOUND after upgrade

Open zeroasterisk opened this issue 1 year ago • 6 comments

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

zeroasterisk avatar Jun 15 '25 00:06 zeroasterisk

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

zeroasterisk avatar Jun 15 '25 01:06 zeroasterisk

I imagine you should be able to utilize gemini-2.5-pro-preview-05-06 as well are you not?

NTaylorMullen avatar Jun 15 '25 05:06 NTaylorMullen

@mboshernitsan is 06-05 not available on vertex?

NTaylorMullen avatar Jun 15 '25 09:06 NTaylorMullen

It's available, but in location=global and not a specific region. I am using Vertex with GOOGLE_CLOUD_LOCATION=global

mboshernitsan avatar Jun 15 '25 18:06 mboshernitsan

@zeroasterisk I believe this is stale

ptone avatar Jun 26 '25 15:06 ptone

Stale

sethtroisi avatar Jul 01 '25 19:07 sethtroisi