Module: Anthropic::Models::Model

Extended by:
Internal::Type::Union
Defined in:
lib/anthropic/models/model.rb

Overview

The model that will complete your prompt.nnSee [models](docs.anthropic.com/en/docs/models-overview) for additional details and options.

collapse

CLAUDE_3_7_SONNET_LATEST =

High-performance model with early extended thinking

:"claude-3-7-sonnet-latest"
CLAUDE_3_7_SONNET_20250219 =

High-performance model with early extended thinking

:"claude-3-7-sonnet-20250219"
CLAUDE_3_5_HAIKU_LATEST =

Fastest and most compact model for near-instant responsiveness

:"claude-3-5-haiku-latest"
CLAUDE_3_5_HAIKU_20241022 =

Our fastest model

:"claude-3-5-haiku-20241022"
CLAUDE_SONNET_4_20250514 =

High-performance model with extended thinking

:"claude-sonnet-4-20250514"
CLAUDE_SONNET_4_0 =

High-performance model with extended thinking

:"claude-sonnet-4-0"
CLAUDE_4_SONNET_20250514 =

High-performance model with extended thinking

:"claude-4-sonnet-20250514"
CLAUDE_3_5_SONNET_LATEST =

Our previous most intelligent model

:"claude-3-5-sonnet-latest"
CLAUDE_3_5_SONNET_20241022 =

Our previous most intelligent model

:"claude-3-5-sonnet-20241022"
CLAUDE_3_5_SONNET_20240620 =
:"claude-3-5-sonnet-20240620"
CLAUDE_OPUS_4_0 =

Our most capable model

:"claude-opus-4-0"
CLAUDE_OPUS_4_20250514 =

Our most capable model

:"claude-opus-4-20250514"
CLAUDE_4_OPUS_20250514 =

Our most capable model

:"claude-4-opus-20250514"
CLAUDE_3_OPUS_LATEST =

Excels at writing and complex tasks

:"claude-3-opus-latest"
CLAUDE_3_OPUS_20240229 =

Excels at writing and complex tasks

:"claude-3-opus-20240229"
CLAUDE_3_SONNET_20240229 =
Deprecated.

Will reach end-of-life on July 21st, 2025. Please migrate to a newer model.

Balance of speed and intelligence Visit docs.anthropic.com/en/docs/resources/model-deprecations for more information.

:"claude-3-sonnet-20240229"
CLAUDE_3_HAIKU_20240307 =

Our previous most fast and cost-effective

:"claude-3-haiku-20240307"
CLAUDE_2_1 =
Deprecated.

Will reach end-of-life on July 21st, 2025. Please migrate to a newer model.

Visit docs.anthropic.com/en/docs/resources/model-deprecations for more information.

:"claude-2.1"
CLAUDE_2_0 =
Deprecated.

Will reach end-of-life on July 21st, 2025. Please migrate to a newer model.

Visit docs.anthropic.com/en/docs/resources/model-deprecations for more information.

:"claude-2.0"

Class Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, type_info

Class Method Details

.variantsArray(Symbol, String)

Returns:

  • (Array(Symbol, String))


54
55
56
# File 'lib/anthropic/models/model.rb', line 54

define_sorbet_constant!(:Variants) do
  T.type_alias { T.any(Anthropic::Model::TaggedSymbol, String) }
end