Package com.unfbx.chatgpt.entity.chat
Enum BaseChatCompletion.Model
- java.lang.Object
-
- java.lang.Enum<BaseChatCompletion.Model>
-
- com.unfbx.chatgpt.entity.chat.BaseChatCompletion.Model
-
- All Implemented Interfaces:
Serializable,Comparable<BaseChatCompletion.Model>
- Enclosing class:
- BaseChatCompletion
public static enum BaseChatCompletion.Model extends Enum<BaseChatCompletion.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_1106_PREVIEW支持数组模式,支持function call,支持可重复输出GPT_4_32KGPT4.0 超长上下文GPT_4_32K_0314Deprecated.GPT_4_32K_0613gpt-4-0613,支持函数GPT_4_VISION_PREVIEW支持图片
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BaseChatCompletion.ModelvalueOf(String name)Returns the enum constant of this type with the specified name.static BaseChatCompletion.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 BaseChatCompletion.Model GPT_3_5_TURBO
gpt-3.5-turbo
-
GPT_3_5_TURBO_0301
@Deprecated public static final BaseChatCompletion.Model GPT_3_5_TURBO_0301
Deprecated.临时模型,不建议使用,2023年9 月 13 日将被弃用
-
GPT_3_5_TURBO_0613
public static final BaseChatCompletion.Model GPT_3_5_TURBO_0613
gpt-3.5-turbo-0613 支持函数
-
GPT_3_5_TURBO_16K
public static final BaseChatCompletion.Model GPT_3_5_TURBO_16K
gpt-3.5-turbo-16k 超长上下文
-
GPT_3_5_TURBO_16K_0613
public static final BaseChatCompletion.Model GPT_3_5_TURBO_16K_0613
gpt-3.5-turbo-16k-0613 超长上下文 支持函数
-
GPT_4
public static final BaseChatCompletion.Model GPT_4
GPT4.0
-
GPT_4_0314
@Deprecated public static final BaseChatCompletion.Model GPT_4_0314
Deprecated.临时模型,不建议使用,2023年9 月 13 日将被弃用
-
GPT_4_32K
public static final BaseChatCompletion.Model GPT_4_32K
GPT4.0 超长上下文
-
GPT_4_32K_0314
@Deprecated public static final BaseChatCompletion.Model GPT_4_32K_0314
Deprecated.临时模型,不建议使用,2023年9 月 13 日将被弃用
-
GPT_4_0613
public static final BaseChatCompletion.Model GPT_4_0613
gpt-4-0613,支持函数
-
GPT_4_32K_0613
public static final BaseChatCompletion.Model GPT_4_32K_0613
gpt-4-0613,支持函数
-
GPT_4_1106_PREVIEW
public static final BaseChatCompletion.Model GPT_4_1106_PREVIEW
支持数组模式,支持function call,支持可重复输出
-
GPT_4_VISION_PREVIEW
public static final BaseChatCompletion.Model GPT_4_VISION_PREVIEW
支持图片
-
-
Method Detail
-
values
public static BaseChatCompletion.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 (BaseChatCompletion.Model c : BaseChatCompletion.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 BaseChatCompletion.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
-
-