Enum Class ChatGPT.Model

java.lang.Object
java.lang.Enum<ChatGPT.Model>
com.anlavn.openai.ChatGPT.Model
All Implemented Interfaces:
Serializable, Comparable<ChatGPT.Model>, Constable
Enclosing class:
ChatGPT

public static enum ChatGPT.Model extends Enum<ChatGPT.Model>
Our GPT-3 models can understand and generate natural language. We offer four main models with different levels of power suitable for different tasks. Davinci is the most capable model, and Ada is the fastest.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Capable of very simple tasks, usually the fastest model in the GPT-3 series, and lowest cost.
    MAX REQUEST: 2,048 tokens.
    PRICING: $0.0004 / 1K tokens
    TRAINING DATA: Up to Oct 2019.
    Capable of straightforward tasks, very fast, and lower cost.
    MAX REQUEST: 2,048 tokens.
    PRICING: $0.0005 / 1K tokens
    TRAINING DATA: Up to Oct 2019.
    Very capable, but faster and lower cost than Davinci.
    MAX REQUEST: 2,048 tokens.
    PRICING: $0.0020 / 1K tokens.
    TRAINING DATA: Up to Oct 2019.
    Most capable GPT-3 model.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    static ChatGPT.Model[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • Davinci

      public static final ChatGPT.Model Davinci
      Most capable GPT-3 model. Can do any task the other models can do, often with higher quality, longer output and better instruction-following. Also supports inserting completions within text.
      MAX REQUEST: 4,000 tokens.
      PRICING: $0.0200 / 1K tokens.
      TRAINING DATA: Up to Jun 2021.
    • Curie

      public static final ChatGPT.Model Curie
      Very capable, but faster and lower cost than Davinci.
      MAX REQUEST: 2,048 tokens.
      PRICING: $0.0020 / 1K tokens.
      TRAINING DATA: Up to Oct 2019.
    • Babbage

      public static final ChatGPT.Model Babbage
      Capable of straightforward tasks, very fast, and lower cost.
      MAX REQUEST: 2,048 tokens.
      PRICING: $0.0005 / 1K tokens
      TRAINING DATA: Up to Oct 2019.
    • Ada

      public static final ChatGPT.Model Ada
      Capable of very simple tasks, usually the fastest model in the GPT-3 series, and lowest cost.
      MAX REQUEST: 2,048 tokens.
      PRICING: $0.0004 / 1K tokens
      TRAINING DATA: Up to Oct 2019.
  • Method Details

    • values

      public static ChatGPT.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 ChatGPT.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