Enum Class OpenAiApi.ServiceTier

java.lang.Object
java.lang.Enum<OpenAiApi.ServiceTier>
org.springframework.ai.openai.api.OpenAiApi.ServiceTier
All Implemented Interfaces:
Serializable, Comparable<OpenAiApi.ServiceTier>, Constable
Enclosing class:
OpenAiApi

public static enum OpenAiApi.ServiceTier extends Enum<OpenAiApi.ServiceTier>
Specifies the processing type used for serving the request.
  • Enum Constant Details

    • AUTO

      public static final OpenAiApi.ServiceTier AUTO
      Then the request will be processed with the service tier configured in the Project settings.
    • DEFAULT

      public static final OpenAiApi.ServiceTier DEFAULT
      Then the request will be processed with the standard pricing.
    • FLEX

      public static final OpenAiApi.ServiceTier FLEX
      Then the request will be processed with the flex pricing.
    • PRIORITY

      public static final OpenAiApi.ServiceTier PRIORITY
      Then the request will be processed with the priority pricing.
  • Method Details

    • values

      public static OpenAiApi.ServiceTier[] 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 OpenAiApi.ServiceTier 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()