Enum BaseChatRequest.ApiFormat
- java.lang.Object
-
- java.lang.Enum<BaseChatRequest.ApiFormat>
-
- com.oracle.bmc.generativeaiinference.model.BaseChatRequest.ApiFormat
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<BaseChatRequest.ApiFormat>
- Enclosing class:
- BaseChatRequest
public static enum BaseChatRequest.ApiFormat extends Enum<BaseChatRequest.ApiFormat> implements BmcEnum
The API format for the model’s family group.COHERE is for the Cohere family models such as the cohere.command-r-16k and cohere.command-r-plus models. GENERIC is for other model families such as the meta.llama-3-70b-instruct model.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BaseChatRequest.ApiFormat
create(String key)
String
getValue()
static BaseChatRequest.ApiFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static BaseChatRequest.ApiFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Cohere
public static final BaseChatRequest.ApiFormat Cohere
-
Generic
public static final BaseChatRequest.ApiFormat Generic
-
-
Method Detail
-
values
public static BaseChatRequest.ApiFormat[] 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 (BaseChatRequest.ApiFormat c : BaseChatRequest.ApiFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BaseChatRequest.ApiFormat 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
-
create
public static BaseChatRequest.ApiFormat create(String key)
-
-