Skip to content

Update to use the platform standard model name / version in samples and snippets and imports (for Google AI and Vertex AI) #460

@rachelsaunders

Description

@rachelsaunders

For both Google AI and Vertex AI, we try to use the most capable and developer-friendly model as possible in our samples, snippets, etc.

The Gemini 1.5 models can understand both text-only and multimodal (even in chat) inputs, which relieves the developer from switching b/w Gemini 1.0 Pro and Gemini 1.0 Pro Vision. For both platforms, there's also a stable version of each Gemini 1.5 model available.

For the foreseeable future, we have the guidance of using Gemini 1.5 Flash for all samples and snippets... unless the feature/capability isn't supported on Gemini 1.5 Flash. In those cases, use Gemini 1.5 Pro (which supports more features, but has a lower RPM).

This is the guidance for the explicit model names in code:

  • For Google AI: use gemini-1.5-flash (or gemini-1.5-pro when required)
  • For Vertex AI: use gemini-1.5-flash-001 (or gemini-1.5-pro-001 when required)

Metadata

Metadata

Labels

featureNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions