Skip to content

List only the Gemini models that serve generateContent - #72

Open
alexey-milovidov wants to merge 1 commit into
mainfrom
gemini-list-chat-models
Open

alexey-milovidov wants to merge 1 commit into
mainfrom
gemini-list-chat-models

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Related: ClickHouse/ClickHouse#137759

GET /v1beta/models lists every model of the Gemini API: the ones for embeddings, for images and video, and for the Live API too. The client speaks generateContent, so a model of that list that cannot be asked through it is of no use to a caller that shows the list for a choice. clickhouse-client is going to do that with ? model for the google provider.

GoogleClient::list_models now leaves out a model that says which methods it serves (supportedGenerationMethods) and does not name generateContent. A model that does not say is listed, as before.

Test: ListModelsTest.GoogleListsOnlyModelsThatGenerateContent.

🤖 Generated with Claude Code

`GET /v1beta/models` lists every model of the Gemini API: the ones for
embeddings, for images and video, and for the Live API too. The client speaks
`generateContent`, so a model of the list that cannot be asked through it is of
no use to a caller that offers the list for a choice.

`GoogleClient::list_models` now leaves out a model that says which methods it
serves (`supportedGenerationMethods`) and does not name `generateContent`. A
model that does not say is listed, as before.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant