Package xyz.felh.openai.chat
Enum Class ChatCompletion.Model
- All Implemented Interfaces:
Serializable,Comparable<ChatCompletion.Model>,Constable
- Enclosing class:
ChatCompletion
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription4,096 tokens gpt-3.5-turbo临时模型,不建议使用 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.4,096 tokens Similar capabilities as text-davinci-003 but compatible with legacy Completions endpoint and not Chat Completions.GPT4.0GPT-4 Turbo The latest GPT-4 model intended to reduce cases of “laziness” where the model doesn’t complete a task.GPT-4 TurboNew The latest GPT-4 model with improved instruction following, JSON mode, reproducible outputs, parallel function calling, and more.GPT4.0 超长上下文GPT-4 Turbo with visionNew Ability to understand images, in addition to all other GPT-4 Turbo capabilties. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChatCompletion.ModelReturns the enum constant of this class with the specified name.static ChatCompletion.Model[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GPT_3_5_TURBO
4,096 tokens gpt-3.5-turbo -
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
4,096 tokens Similar capabilities as text-davinci-003 but compatible with legacy Completions endpoint and not Chat Completions. -
GPT_4
GPT4.0 -
GPT_4_32K
GPT4.0 超长上下文 -
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
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
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
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
-