Enum Class SystemOneModel

java.lang.Object
java.lang.Enum<SystemOneModel>
org.springframework.ai.systemone.api.SystemOneModel
All Implemented Interfaces:
Serializable, Comparable<SystemOneModel>, Constable

public enum SystemOneModel extends Enum<SystemOneModel>
The model aliases of the hosted System One service. Aliases are resolved server side, so pinning a version is only necessary when an application must not move underneath itself. Other System One servers name their models differently.
Since:
2.1.0
Author:
Christian Tzolov
  • Enum Constant Details

    • LATEST

      public static final SystemOneModel LATEST
      Alias tracking the current flagship release.
    • PREVIEW

      public static final SystemOneModel PREVIEW
      Alias tracking the current preview release.
  • Method Details

    • values

      public static SystemOneModel[] 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 SystemOneModel 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
    • id

      public String id()
      Returns:
      the model name sent to the server