Enum Class OpenAiChatProperties.Api

java.lang.Object
java.lang.Enum<OpenAiChatProperties.Api>
org.springframework.ai.model.openai.autoconfigure.OpenAiChatProperties.Api
All Implemented Interfaces:
Serializable, Comparable<OpenAiChatProperties.Api>, Constable
Enclosing class:
OpenAiChatProperties

public static enum OpenAiChatProperties.Api extends Enum<OpenAiChatProperties.Api>
The OpenAI endpoints a ChatModel bean can be backed by.
  • Enum Constant Details

    • CHAT_COMPLETIONS

      public static final OpenAiChatProperties.Api CHAT_COMPLETIONS
      /v1/chat/completions, served by OpenAiChatModel.
    • RESPONSES

      public static final OpenAiChatProperties.Api RESPONSES
      /v1/responses, served by OpenAiResponsesChatModel.
  • Method Details

    • values

      public static OpenAiChatProperties.Api[] 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 OpenAiChatProperties.Api 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