Why is Gemini 2.5 Flash not supported?

I’m using the TypeScript client weaviate-client to be used with Google Gemini.

Why is it that the client is refusing to accept gemini-2.5-flash as the model? It is the latest.

The options that the client is listing are all outdated.

This is the actual error message:

WeaviateUnexpectedStatusCodeError: The request to Weaviate failed with status code: 422 and message: {"error":[{"message":"module 'generative-google': gemini-2.5-flash is not supported available models are: [chat-bison-001 gemini-pro gemini-ultra gemini-1.5-flash-latest gemini-1.5-pro-latest chat-bison chat-bison-32k chat-bison@002 chat-bison-32k@002 chat-bison@001 gemini-1.5-pro-preview-0514 gemini-1.5-pro-preview-0409 gemini-1.5-flash-preview-0514 gemini-1.0-pro-002 gemini-1.0-pro-001 gemini-1.0-pro]"}]}

hi @cheehow !!

Nice catch. Please, feel free to open a feature request in our main repo: Sign in to GitHub · GitHub

Thanks!

I removed the validation of the models in here: Remove model validation from generative+rerank modules by dirkkul · Pull Request #9440 · weaviate/weaviate · GitHub - the next version of 1.31+ will allow you to use the latest gemini models

1 Like