Skip to content

Gemini 3.1 flash lite (and maybe other supported models?) missing from Model enum #1396

@acusti

Description

@acusti

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

  1. try to figure out what gemini models are supported by looking at the Model enum type
  2. 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.

Metadata

Metadata

Assignees

Labels

api:gemini-apipriority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions