google-gemini/generative-ai-dart

consider exposing the `ListModels` API call

devoncarew opened this issue · 2 comments

Seen from an error message:

models/xxx is not found for API version v1, or is not supported for GenerateContent.
Call ListModels to see the list of available models and their supported methods.

+1

Hope this particular API call get exposed ASAP.

Some apps, such as Maid, allow the user to choose the model to use from a list of available models. For Google AI, these are currently hard-coded. Having a method to retrieve the list of available models would simplify maintenance.