Skip to content

Deduplicate list of models #803

@nbonamy

Description

@nbonamy

When calling models.list, the list returns models that look similar: all fields are the same except the name. But the name is so different that it makes one wonder if they are the same models or not.

For instance for Gemini 2.5 Flash Preview 05-20:

models/gemini-2.5-flash-preview-05-20
description:"Preview release (April 17th, 2025) of Gemini 2.5 Flash"
displayName: "Gemini 2.5 Flash Preview 05-20"
inputTokenLimit:1048576,
maxTemperature: 2,
name: "models/gemini-2.5-flash-preview-05-20",
outputTokenLimit: 65536,
supportedGenerationMethods: [...],
temperature:1,
thinking:true,
topk: 64,
topP: 0.95,
version:"2.5-preview-05-20"

models/gemini-2.0-flash-thinking-exp-01-21
description: "Preview release (April 17th, 2025) of Gemini 2.5 Flash"
displayName: "Gemini 2.5 Flash Preview 05-20"
inputTokenLimit:1048576,
maxTemperature: 2,
name: "models/gemini-2.0-flash-thinking-exp-01-21",
outputTokenLimit: 65536,
supportedGenerationMethods: [...],
temperature:1,
thinking:true,
topk: 64,
topP: 0.95,
version: "2.5-preview-05-20"

Those models are probably the same but the fact that one name says thinking and the other one does not is really confusing.

On which basis can we assume these models are the same? I am thinking the version field should be the right one. Correct?

Thanks!

Metadata

Metadata

Assignees

Labels

priority: p3Desirable enhancement or fix. May not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions