Enum Class VertexAiGeminiChatModel.ChatModel

java.lang.Object
java.lang.Enum<VertexAiGeminiChatModel.ChatModel>
org.springframework.ai.vertexai.gemini.VertexAiGeminiChatModel.ChatModel
All Implemented Interfaces:
Serializable, Comparable<VertexAiGeminiChatModel.ChatModel>, Constable, ChatModelDescription, ModelDescription
Enclosing class:
VertexAiGeminiChatModel

public static enum VertexAiGeminiChatModel.ChatModel extends Enum<VertexAiGeminiChatModel.ChatModel> implements ChatModelDescription
  • Enum Constant Details

    • GEMINI_1_5_PRO

      public static final VertexAiGeminiChatModel.ChatModel GEMINI_1_5_PRO
      gemini-1.5-pro is recommended to upgrade to gemini-2.0-flash

      Discontinuation date: September 24, 2025

      See: stable-version

    • GEMINI_1_5_FLASH

      public static final VertexAiGeminiChatModel.ChatModel GEMINI_1_5_FLASH
      gemini-1.5-flash is recommended to upgrade to gemini-2.0-flash-lite

      Discontinuation date: September 24, 2025

      See: stable-version

    • GEMINI_2_0_FLASH

      public static final VertexAiGeminiChatModel.ChatModel 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

      public static final VertexAiGeminiChatModel.ChatModel 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

      See: gemini-2.0-flash-lite

    • GEMINI_2_5_PRO

      public static final VertexAiGeminiChatModel.ChatModel 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

      public static final VertexAiGeminiChatModel.ChatModel 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

      public final String value
  • Method Details

    • values

      public static VertexAiGeminiChatModel.ChatModel[] 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

      public static VertexAiGeminiChatModel.ChatModel valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
    • getName

      public String getName()
      Description copied from interface: ModelDescription
      Returns the name of the model.
      Specified by:
      getName in interface ModelDescription
      Returns:
      the name of the model