Enum Class AnthropicApi.ChatModel
- All Implemented Interfaces:
Serializable, Comparable<AnthropicApi.ChatModel>, Constable, org.springframework.ai.model.ChatModelDescription, org.springframework.ai.model.ModelDescription
- Enclosing class:
AnthropicApi
public static enum AnthropicApi.ChatModel
extends Enum<AnthropicApi.ChatModel>
implements org.springframework.ai.model.ChatModelDescription
Check the Models
overview and model
comparison for additional details and options.
- Since:
- 1.0.0
- Author:
- Christian Tzolov, Mariusz Bernacki, Thomas Vitale, Jihoon Kim, Alexandros Pappas, Jonghoon Park, Claudio Silva Junior, Filip Hrisafov, Soby Chacko, Austin Dase
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe CLAUDE 3.5 HAIKUThe claude-3-5-sonnet-latest model.(Deprecated on October 28, 2025)The claude-3-7-sonnet-latest model.The CLAUDE_3_HAIKUThe CLAUDE_3_OPUSThe CLAUDE_3_SONNET (Deprecated.The claude-haiku-4-5 model.The claude-opus-4-0 model.The claude-opus-4-1 model.The claude-opus-4-5 model.The claude-sonnet-4-0 model.The claude-sonnet-4-5 model. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the name of the model.getValue()Get the value of the model.static AnthropicApi.ChatModelReturns the enum constant of this class with the specified name.static AnthropicApi.ChatModel[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.springframework.ai.model.ModelDescription
getDescription, getVersion
-
Enum Constant Details
-
CLAUDE_SONNET_4_5
The claude-sonnet-4-5 model. -
CLAUDE_OPUS_4_5
The claude-opus-4-5 model. -
CLAUDE_HAIKU_4_5
The claude-haiku-4-5 model. -
CLAUDE_OPUS_4_1
The claude-opus-4-1 model. -
CLAUDE_OPUS_4_0
The claude-opus-4-0 model. -
CLAUDE_SONNET_4_0
The claude-sonnet-4-0 model. -
CLAUDE_3_7_SONNET
The claude-3-7-sonnet-latest model. -
CLAUDE_3_5_SONNET
The claude-3-5-sonnet-latest model.(Deprecated on October 28, 2025) -
CLAUDE_3_OPUS
The CLAUDE_3_OPUS -
CLAUDE_3_SONNET
The CLAUDE_3_SONNET (Deprecated. To be removed on July 21, 2025) -
CLAUDE_3_5_HAIKU
The CLAUDE 3.5 HAIKU -
CLAUDE_3_HAIKU
The CLAUDE_3_HAIKU
-
-
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
-
getValue
-
getName
Get the name of the model.- Specified by:
getNamein interfaceorg.springframework.ai.model.ModelDescription- Returns:
- The name of the model.
-