Enum Class VertexAiGeminiChatModel.ChatModel
- All Implemented Interfaces:
Serializable
,Comparable<VertexAiGeminiChatModel.ChatModel>
,Constable
,ChatModelDescription
,ModelDescription
- Enclosing class:
- VertexAiGeminiChatModel
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptiongemini-1.5-flash is recommended to upgrade to gemini-2.0-flash-litegemini-1.5-pro is recommended to upgrade to gemini-2.0-flashgemini-2.0-flash delivers next-gen features and improved capabilities, including superior speed, built-in tool use, multimodal generation, and a 1M token context window.gemini-2.0-flash-lite is the fastest and most cost efficient Flash model.gemini-2.5-flash is a thinking model that offers great, well-rounded capabilities.gemini-2.5-pro is the most advanced reasoning Gemini model, capable of solving complex problems. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name of the model.getValue()
Returns the enum constant of this class with the specified name.static VertexAiGeminiChatModel.ChatModel[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.springframework.ai.model.ModelDescription
getDescription, getVersion
-
Enum Constant Details
-
GEMINI_1_5_PRO
gemini-1.5-pro is recommended to upgrade to gemini-2.0-flashDiscontinuation date: September 24, 2025
See: stable-version
-
GEMINI_1_5_FLASH
gemini-1.5-flash is recommended to upgrade to gemini-2.0-flash-liteDiscontinuation date: September 24, 2025
See: stable-version
-
GEMINI_2_0_FLASH
gemini-2.0-flash delivers next-gen features and improved capabilities, including superior speed, built-in tool use, multimodal generation, and a 1M token context window.Inputs: Text, Code, Images, Audio, Video - 1,048,576 tokens | Outputs: Text, Audio(Experimental), Images(Experimental) - 8,192 tokens
Knowledge cutoff: June 2024
Model ID: gemini-2.0-flash
See: gemini-2.0-flash
-
GEMINI_2_0_FLASH_LIGHT
gemini-2.0-flash-lite is the fastest and most cost efficient Flash model. It's an upgrade path for 1.5 Flash users who want better quality for the same price and speed.Inputs: Text, Code, Images, Audio, Video - 1,048,576 tokens | Outputs: Text - 8,192 tokens
Knowledge cutoff: June 2024
Model ID: gemini-2.0-flash-lite
-
GEMINI_2_5_PRO
gemini-2.5-pro is the most advanced reasoning Gemini model, capable of solving complex problems.Inputs: Text, Code, Images, Audio, Video - 1,048,576 tokens | Outputs: Text - 65,536 tokens
Knowledge cutoff: January 2025
Model ID: gemini-2.5-pro-preview-05-06
See: gemini-2.5-pro
-
GEMINI_2_5_FLASH
gemini-2.5-flash is a thinking model that offers great, well-rounded capabilities. It is designed to offer a balance between price and performance.Inputs: Text, Code, Images, Audio, Video - 1,048,576 tokens | Outputs: Text - 65,536 tokens
Knowledge cutoff: January 2025
Model ID: gemini-2.5-flash-preview-04-17
See: gemini-2.5-flash
-
-
Field Details
-
value
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
-
getName
Description copied from interface:ModelDescription
Returns the name of the model.- Specified by:
getName
in interfaceModelDescription
- Returns:
- the name of the model
-