Package com.anlavn.openai
Enum Class ChatGPT.Model
- All Implemented Interfaces:
Serializable,Comparable<ChatGPT.Model>,Constable
- Enclosing class:
- ChatGPT
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 ConstantsEnum ConstantDescriptionCapable 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 TypeMethodDescriptionstatic ChatGPT.ModelReturns the enum constant of this class with the specified name.static ChatGPT.Model[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
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
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 nameNullPointerException- if the argument is null
-