Enum Class ChatCompletion.Model

java.lang.Object
java.lang.Enum<ChatCompletion.Model>
xyz.felh.openai.chat.ChatCompletion.Model
All Implemented Interfaces:
Serializable, Comparable<ChatCompletion.Model>, Constable
Enclosing class:
ChatCompletion

public static enum ChatCompletion.Model extends Enum<ChatCompletion.Model>
  • Enum Constant Details

    • GPT_3_5_TURBO

      public static final ChatCompletion.Model GPT_3_5_TURBO
      4,096 tokens gpt-3.5-turbo
    • GPT_3_5_TURBO_1106

      public static final ChatCompletion.Model GPT_3_5_TURBO_1106
      临时模型,不建议使用 Updated GPT 3.5 TurboNew The latest GPT-3.5 Turbo model with improved instruction following, JSON mode, reproducible outputs, parallel function calling, and more. Returns a maximum of 4,096 output tokens.
    • GPT_3_5_TURBO_INSTRUCT

      public static final ChatCompletion.Model GPT_3_5_TURBO_INSTRUCT
      4,096 tokens Similar capabilities as text-davinci-003 but compatible with legacy Completions endpoint and not Chat Completions.
    • GPT_4

      public static final ChatCompletion.Model GPT_4
      GPT4.0
    • GPT_4_32K

      public static final ChatCompletion.Model GPT_4_32K
      GPT4.0 超长上下文
    • GPT_4_1106_PREVIEW

      public static final ChatCompletion.Model GPT_4_1106_PREVIEW
      GPT-4 TurboNew The latest GPT-4 model with improved instruction following, JSON mode, reproducible outputs, parallel function calling, and more. Returns a maximum of 4,096 output tokens. This preview model is not yet suited for production traffic. 128,000 tokens
    • GPT_4_VISION_PREVIEW

      public static final ChatCompletion.Model GPT_4_VISION_PREVIEW
      GPT-4 Turbo with visionNew Ability to understand images, in addition to all other GPT-4 Turbo capabilties. Returns a maximum of 4,096 output tokens. This is a preview model version and not suited yet for production traffic. 128,000 tokens
    • GPT_4_0125_PREVIEW

      public static final ChatCompletion.Model GPT_4_0125_PREVIEW
      GPT-4 Turbo The latest GPT-4 model intended to reduce cases of “laziness” where the model doesn’t complete a task.
  • Method Details

    • values

      public static ChatCompletion.Model[] 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 ChatCompletion.Model 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