Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update model ID for Gemini 2.0 Flash Lite #48

Closed
simonw opened this issue Feb 25, 2025 · 2 comments
Closed

Update model ID for Gemini 2.0 Flash Lite #48

simonw opened this issue Feb 25, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Feb 25, 2025

https://developers.googleblog.com/en/start-building-with-the-gemini-2-0-flash-family/

Currently we have:

llm-gemini/llm_gemini.py

Lines 55 to 63 in 489d629

"gemini-2.0-flash-exp",
"learnlm-1.5-pro-experimental",
"gemini-2.0-flash-thinking-exp-1219",
"gemini-2.0-flash-thinking-exp-01-21",
# Released 5th Feb 2025:
"gemini-2.0-flash",
"gemini-2.0-flash-lite-preview-02-05",
"gemini-2.0-pro-exp-02-05",
]:

Looks like there is a new model ID: https://ai.google.dev/gemini-api/docs/models/gemini lists

  • gemini-2.0-flash-lite
@simonw simonw added the enhancement New feature or request label Feb 25, 2025
@simonw
Copy link
Owner Author

simonw commented Feb 25, 2025

llm -m gemini-2.0-flash-lite-preview-02-05 hi

Error: models/gemini-2.0-flash-lite-preview-02-05 is not found for API version v1beta, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.

Looks like they've retired that alias!

I could set that up as a default alias but I think I'll let people who rely on that make the change themselves.

@simonw simonw closed this as completed in f85fbc4 Feb 25, 2025
simonw added a commit that referenced this issue Feb 25, 2025
@simonw
Copy link
Owner Author

simonw commented Feb 25, 2025

llm -m gemini-2.0-flash-lite hi

Hi there! How can I help you today?

llm -m gemini-2.0-flash-lite describe -a https://static.simonwillison.net/static/2024/pelicans.jpg

Here is a description of the image:

The image captures a large gathering of birds, predominantly pelicans, on a rocky, uneven surface. The pelicans, with their distinctive large beaks and plumage, are clustered closely together, intermingling with smaller, darker-colored birds. The rocky terrain appears to be near a body of water, as a calm, blue expanse is visible in the background. The lighting in the image suggests an overcast or slightly diffused daylight, casting a muted tone over the scene.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant