Module: Anthropic::Models::Model

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

Overview

The model that will complete your prompt.\n\nSee models 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 =
Deprecated.

Will reach end-of-life on October 22, 2025. Please migrate to a newer model.

Our previous most intelligent model Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.

:"claude-3-5-sonnet-20241022"
CLAUDE_3_5_SONNET_20240620 =
Deprecated.

Will reach end-of-life on October 22, 2025. Please migrate to a newer model.

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

:"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_OPUS_4_1_20250805 =

Our most capable model

:"claude-opus-4-1-20250805"
CLAUDE_3_OPUS_LATEST =
Deprecated.

Will reach end-of-life on January 5th, 2026. Please migrate to a newer model.

Excels at writing and complex tasks Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.

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

Will reach end-of-life on January 5th, 2026. Please migrate to a newer model.

Excels at writing and complex tasks Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.

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

Our previous most fast and cost-effective

:"claude-3-haiku-20240307"

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, meta_info, new_coerce_state, type_info

Class Method Details

.variantsArray(Symbol, String)

Returns:

  • (Array(Symbol, String))


50
51
52
# File 'lib/anthropic/models/model.rb', line 50

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