anthropic 1.48.0 → 1.48.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c61f95540e8d3612cb88a43f2542ad1b719242c3b361334c59fc855efb98eba8
4
- data.tar.gz: dd005ff2ea32f5948a0e3af5b21083ec2e11d3c04fc4192c2c90bc93ad17cd0d
3
+ metadata.gz: 04770f1a0fcb24be2c40a0a67b9397c0103218ff9c082e75d9659c0673ff5aac
4
+ data.tar.gz: df85394d335c2666281c5c3d05af57465480712df8664a7885721481406e81cc
5
5
  SHA512:
6
- metadata.gz: 5639638d74a7c10d6a50d1f3fb884d3050d69cff2e23752ab01b5ff5240ff58b44f1d8a7dfc10c10504aa3a72fe82794717febf99c8ea35b784089f844e4a905
7
- data.tar.gz: 31acfb7d9839cfb5864b94dd3ecbca8f6be1cbc1399b62541d871caba4e520e684ccc22292bba403ad9e0c0e07025593aae14dc15035059e2eeb283888ba0ffa
6
+ metadata.gz: 8940514153f62cefb0878d36dc786f542a0002e38543c3e52dc88d9d32e34f36f99db5c15e4de894a84c39ff361f03711b6a88613dee198343ede2e337bccba2
7
+ data.tar.gz: f6c21933bb2e77445eff2925250b25315f729c8ae81f45e7a0be304959996d75e19a6398539c4a063380b3376f556b35ac1a1ad16d5ca9f03074e74c642ef939
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.48.2 (2026-06-15)
4
+
5
+ Full Changelog: [v1.48.1...v1.48.2](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.48.1...v1.48.2)
6
+
7
+ ### Chores
8
+
9
+ * **api:** remove retired models from API and SDKs ([c429fe1](https://github.com/anthropics/anthropic-sdk-ruby/commit/c429fe1911b96e2d93ab554387b7e47dc16b32dc))
10
+
11
+ ## 1.48.1 (2026-06-09)
12
+
13
+ Full Changelog: [v1.48.0...v1.48.1](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.48.0...v1.48.1)
14
+
15
+ ### Bug Fixes
16
+
17
+ * **api:** add `frontier_llm` refusal category ([5fb7044](https://github.com/anthropics/anthropic-sdk-ruby/commit/5fb704475d5296d37065cec77a18867f2ccdee16))
18
+
3
19
  ## 1.48.0 (2026-06-09)
4
20
 
5
21
  Full Changelog: [v1.47.0...v1.48.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.47.0...v1.48.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ Add to your application's Gemfile:
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "anthropic", "~> 1.48.0"
18
+ gem "anthropic", "~> 1.48.2"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -110,6 +110,7 @@ module Anthropic
110
110
 
111
111
  CYBER = :cyber
112
112
  BIO = :bio
113
+ FRONTIER_LLM = :frontier_llm
113
114
  REASONING_EXTRACTION = :reasoning_extraction
114
115
 
115
116
  # @!method self.values
@@ -39,16 +39,6 @@ module Anthropic
39
39
 
40
40
  variant const: -> { Anthropic::Models::Model::CLAUDE_OPUS_4_1_20250805 }
41
41
 
42
- variant const: -> { Anthropic::Models::Model::CLAUDE_OPUS_4_0 }
43
-
44
- variant const: -> { Anthropic::Models::Model::CLAUDE_OPUS_4_20250514 }
45
-
46
- variant const: -> { Anthropic::Models::Model::CLAUDE_SONNET_4_0 }
47
-
48
- variant const: -> { Anthropic::Models::Model::CLAUDE_SONNET_4_20250514 }
49
-
50
- variant const: -> { Anthropic::Models::Model::CLAUDE_3_HAIKU_20240307 }
51
-
52
42
  variant String
53
43
 
54
44
  # @!method self.variants
@@ -114,36 +104,6 @@ module Anthropic
114
104
  # information.
115
105
  CLAUDE_OPUS_4_1_20250805 = :"claude-opus-4-1-20250805"
116
106
 
117
- # Powerful model for complex tasks
118
- # @deprecated Will reach end-of-life on June 15th, 2026. Please migrate to a newer model.
119
- # Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more
120
- # information.
121
- CLAUDE_OPUS_4_0 = :"claude-opus-4-0"
122
-
123
- # Powerful model for complex tasks
124
- # @deprecated Will reach end-of-life on June 15th, 2026. Please migrate to a newer model.
125
- # Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more
126
- # information.
127
- CLAUDE_OPUS_4_20250514 = :"claude-opus-4-20250514"
128
-
129
- # High-performance model with extended thinking
130
- # @deprecated Will reach end-of-life on June 15th, 2026. Please migrate to a newer model.
131
- # Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more
132
- # information.
133
- CLAUDE_SONNET_4_0 = :"claude-sonnet-4-0"
134
-
135
- # High-performance model with extended thinking
136
- # @deprecated Will reach end-of-life on June 15th, 2026. Please migrate to a newer model.
137
- # Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more
138
- # information.
139
- CLAUDE_SONNET_4_20250514 = :"claude-sonnet-4-20250514"
140
-
141
- # Fast and cost-effective model
142
- # @deprecated Will reach end-of-life on April 20th, 2026. Please migrate to claude-haiku-4-5.
143
- # Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more
144
- # information.
145
- CLAUDE_3_HAIKU_20240307 = :"claude-3-haiku-20240307"
146
-
147
107
  # @!endgroup
148
108
  end
149
109
  end
@@ -47,6 +47,7 @@ module Anthropic
47
47
 
48
48
  CYBER = :cyber
49
49
  BIO = :bio
50
+ FRONTIER_LLM = :frontier_llm
50
51
  REASONING_EXTRACTION = :reasoning_extraction
51
52
 
52
53
  # @!method self.values
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anthropic
4
- VERSION = "1.48.0"
4
+ VERSION = "1.48.2"
5
5
  end
@@ -198,6 +198,11 @@ module Anthropic
198
198
  :bio,
199
199
  Anthropic::Beta::BetaRefusalStopDetails::Category::TaggedSymbol
200
200
  )
201
+ FRONTIER_LLM =
202
+ T.let(
203
+ :frontier_llm,
204
+ Anthropic::Beta::BetaRefusalStopDetails::Category::TaggedSymbol
205
+ )
201
206
  REASONING_EXTRACTION =
202
207
  T.let(
203
208
  :reasoning_extraction,
@@ -76,26 +76,6 @@ module Anthropic
76
76
  # Exceptional model for specialized complex tasks
77
77
  CLAUDE_OPUS_4_1_20250805 =
78
78
  T.let(:"claude-opus-4-1-20250805", Anthropic::Model::TaggedSymbol)
79
-
80
- # Powerful model for complex tasks
81
- CLAUDE_OPUS_4_0 =
82
- T.let(:"claude-opus-4-0", Anthropic::Model::TaggedSymbol)
83
-
84
- # Powerful model for complex tasks
85
- CLAUDE_OPUS_4_20250514 =
86
- T.let(:"claude-opus-4-20250514", Anthropic::Model::TaggedSymbol)
87
-
88
- # High-performance model with extended thinking
89
- CLAUDE_SONNET_4_0 =
90
- T.let(:"claude-sonnet-4-0", Anthropic::Model::TaggedSymbol)
91
-
92
- # High-performance model with extended thinking
93
- CLAUDE_SONNET_4_20250514 =
94
- T.let(:"claude-sonnet-4-20250514", Anthropic::Model::TaggedSymbol)
95
-
96
- # Fast and cost-effective model
97
- CLAUDE_3_HAIKU_20240307 =
98
- T.let(:"claude-3-haiku-20240307", Anthropic::Model::TaggedSymbol)
99
79
  end
100
80
  end
101
81
  end
@@ -79,6 +79,11 @@ module Anthropic
79
79
  CYBER =
80
80
  T.let(:cyber, Anthropic::RefusalStopDetails::Category::TaggedSymbol)
81
81
  BIO = T.let(:bio, Anthropic::RefusalStopDetails::Category::TaggedSymbol)
82
+ FRONTIER_LLM =
83
+ T.let(
84
+ :frontier_llm,
85
+ Anthropic::RefusalStopDetails::Category::TaggedSymbol
86
+ )
82
87
  REASONING_EXTRACTION =
83
88
  T.let(
84
89
  :reasoning_extraction,
@@ -44,13 +44,14 @@ module Anthropic
44
44
  type: :refusal
45
45
  }
46
46
 
47
- type category = :cyber | :bio | :reasoning_extraction
47
+ type category = :cyber | :bio | :frontier_llm | :reasoning_extraction
48
48
 
49
49
  module Category
50
50
  extend Anthropic::Internal::Type::Enum
51
51
 
52
52
  CYBER: :cyber
53
53
  BIO: :bio
54
+ FRONTIER_LLM: :frontier_llm
54
55
  REASONING_EXTRACTION: :reasoning_extraction
55
56
 
56
57
  def self?.values: -> ::Array[Anthropic::Models::Beta::BetaRefusalStopDetails::category]
@@ -16,11 +16,6 @@ module Anthropic
16
16
  | :"claude-sonnet-4-5-20250929"
17
17
  | :"claude-opus-4-1"
18
18
  | :"claude-opus-4-1-20250805"
19
- | :"claude-opus-4-0"
20
- | :"claude-opus-4-20250514"
21
- | :"claude-sonnet-4-0"
22
- | :"claude-sonnet-4-20250514"
23
- | :"claude-3-haiku-20240307"
24
19
  | String
25
20
 
26
21
  module Model
@@ -72,21 +67,6 @@ module Anthropic
72
67
 
73
68
  # Exceptional model for specialized complex tasks
74
69
  CLAUDE_OPUS_4_1_20250805: :"claude-opus-4-1-20250805"
75
-
76
- # Powerful model for complex tasks
77
- CLAUDE_OPUS_4_0: :"claude-opus-4-0"
78
-
79
- # Powerful model for complex tasks
80
- CLAUDE_OPUS_4_20250514: :"claude-opus-4-20250514"
81
-
82
- # High-performance model with extended thinking
83
- CLAUDE_SONNET_4_0: :"claude-sonnet-4-0"
84
-
85
- # High-performance model with extended thinking
86
- CLAUDE_SONNET_4_20250514: :"claude-sonnet-4-20250514"
87
-
88
- # Fast and cost-effective model
89
- CLAUDE_3_HAIKU_20240307: :"claude-3-haiku-20240307"
90
70
  end
91
71
  end
92
72
  end
@@ -26,13 +26,14 @@ module Anthropic
26
26
  type: :refusal
27
27
  }
28
28
 
29
- type category = :cyber | :bio | :reasoning_extraction
29
+ type category = :cyber | :bio | :frontier_llm | :reasoning_extraction
30
30
 
31
31
  module Category
32
32
  extend Anthropic::Internal::Type::Enum
33
33
 
34
34
  CYBER: :cyber
35
35
  BIO: :bio
36
+ FRONTIER_LLM: :frontier_llm
36
37
  REASONING_EXTRACTION: :reasoning_extraction
37
38
 
38
39
  def self?.values: -> ::Array[Anthropic::Models::RefusalStopDetails::category]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anthropic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.48.0
4
+ version: 1.48.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthropic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-09 00:00:00.000000000 Z
11
+ date: 2026-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi