Environment details
- Programming language: typescript
- OS: macOS 15.7.3 (24G419)
- Language runtime version: typescript 5.9.3
- Package version:
@google/genai@1.44.0
Steps to reproduce
- try to figure out what gemini models are supported by looking at the
Model enum type
- assume that gemini 3.1 flash lite and other recently released models aren’t supported because they aren’t enumerated in that type
To be clear, the enum includes | (string & {}), so I can use any random value as the model string and I won’t get type errors (which I don’t love, but I take as a signal that completeness isn’t the most important goal here). But I think it would be helpful to keep the type updated with all available models.
Environment details
@google/genai@1.44.0Steps to reproduce
Modelenum typeTo be clear, the enum includes
| (string & {}), so I can use any random value as the model string and I won’t get type errors (which I don’t love, but I take as a signal that completeness isn’t the most important goal here). But I think it would be helpful to keep the type updated with all available models.