Package com.unfbx.chatgpt.entity.chat
Enum ChatCompletion.Model
- java.lang.Object
-
- java.lang.Enum<ChatCompletion.Model>
-
- com.unfbx.chatgpt.entity.chat.ChatCompletion.Model
-
- All Implemented Interfaces:
Serializable,Comparable<ChatCompletion.Model>
- Enclosing class:
- ChatCompletion
public static enum ChatCompletion.Model extends Enum<ChatCompletion.Model>
最新模型参考官方文档: 官方稳定模型列表
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GPT_3_5_TURBOgpt-3.5-turboGPT_3_5_TURBO_0301Deprecated.GPT_3_5_TURBO_0613gpt-3.5-turbo-0613 支持函数GPT_3_5_TURBO_16Kgpt-3.5-turbo-16k 超长上下文GPT_3_5_TURBO_16K_0613gpt-3.5-turbo-16k-0613 超长上下文 支持函数GPT_4GPT4.0GPT_4_0314Deprecated.GPT_4_0613gpt-4-0613,支持函数GPT_4_32KGPT4.0 超长上下文GPT_4_32K_0314临时模型,不建议使用,2023年9 月 13 日将被弃用GPT_4_32K_0613gpt-4-0613,支持函数
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChatCompletion.ModelvalueOf(String name)Returns the enum constant of this type with the specified name.static ChatCompletion.Model[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GPT_3_5_TURBO
public static final ChatCompletion.Model GPT_3_5_TURBO
gpt-3.5-turbo
-
GPT_3_5_TURBO_0301
@Deprecated public static final ChatCompletion.Model GPT_3_5_TURBO_0301
Deprecated.临时模型,不建议使用,2023年9 月 13 日将被弃用
-
GPT_3_5_TURBO_0613
public static final ChatCompletion.Model GPT_3_5_TURBO_0613
gpt-3.5-turbo-0613 支持函数
-
GPT_3_5_TURBO_16K
public static final ChatCompletion.Model GPT_3_5_TURBO_16K
gpt-3.5-turbo-16k 超长上下文
-
GPT_3_5_TURBO_16K_0613
public static final ChatCompletion.Model GPT_3_5_TURBO_16K_0613
gpt-3.5-turbo-16k-0613 超长上下文 支持函数
-
GPT_4
public static final ChatCompletion.Model GPT_4
GPT4.0
-
GPT_4_0314
@Deprecated public static final ChatCompletion.Model GPT_4_0314
Deprecated.临时模型,不建议使用,2023年9 月 13 日将被弃用
-
GPT_4_32K
public static final ChatCompletion.Model GPT_4_32K
GPT4.0 超长上下文
-
GPT_4_32K_0314
public static final ChatCompletion.Model GPT_4_32K_0314
临时模型,不建议使用,2023年9 月 13 日将被弃用
-
GPT_4_0613
public static final ChatCompletion.Model GPT_4_0613
gpt-4-0613,支持函数
-
GPT_4_32K_0613
public static final ChatCompletion.Model GPT_4_32K_0613
gpt-4-0613,支持函数
-
-
Method Detail
-
values
public static ChatCompletion.Model[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ChatCompletion.Model c : ChatCompletion.Model.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChatCompletion.Model valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-