Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

Commit 311dc03

Browse files
committed
refactor: Update model references and remove deprecated entries
- Removed deprecated models "claude-3-opus-20240229", "claude-3-5-sonnet-20240620", and "claude-3-5-sonnet-latest" from settings.py and providers.py. - Updated test cases to eliminate references to removed models, ensuring alignment with current model offerings. - Enhanced test coverage by adjusting cassettes and fixtures to reflect the latest model configurations.
1 parent a2bb206 commit 311dc03

15 files changed

Lines changed: 92 additions & 1337 deletions

notdiamond/llms/providers.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ class NDLLMProviders(Enum):
3232
GPT_4o_2024_11_20 (NDLLMProvider): refers to 'gpt-4o-2024-11-20' model by OpenAI
3333
3434
CLAUDE_2_1 (NDLLMProvider): refers to 'claude-2.1' model by Anthropic
35-
CLAUDE_3_OPUS_20240229 (NDLLMProvider): refers to 'claude-3-opus-20240229' model by Anthropic
3635
CLAUDE_3_SONNET_20240229 (NDLLMProvider): refers to 'claude-3-sonnet-20240229' model by Anthropic
37-
CLAUDE_3_5_SONNET_20240620 (NDLLMProvider): refers to 'claude-3-5-sonnet-20240620' model by Anthropic
3836
CLAUDE_3_7_SONNET_LATEST (NDLLMProvider): refers to 'claude-3-7-sonnet-latest' model by Anthropic
3937
CLAUDE_3_7_SONNET_20250219 (NDLLMProvider): refers to 'claude-3-7-sonnet-20250219' model by Anthropic
4038
CLAUDE_3_5_HAIKU_20241022 (NDLLMProvider): refers to 'claude-3-5-haiku-20241022' model by Anthropic
@@ -118,11 +116,7 @@ class NDLLMProviders(Enum):
118116
GPT_4o_2024_11_20 = ("openai", "gpt-4o-2024-11-20")
119117

120118
CLAUDE_2_1 = ("anthropic", "claude-2.1")
121-
CLAUDE_3_OPUS_20240229 = ("anthropic", "claude-3-opus-20240229")
122119
CLAUDE_3_SONNET_20240229 = ("anthropic", "claude-3-sonnet-20240229")
123-
CLAUDE_3_5_SONNET_20240620 = ("anthropic", "claude-3-5-sonnet-20240620")
124-
CLAUDE_3_5_SONNET_20241022 = ("anthropic", "claude-3-5-sonnet-20241022")
125-
CLAUDE_3_5_SONNET_LATEST = ("anthropic", "claude-3-5-sonnet-latest")
126120
CLAUDE_3_7_SONNET_LATEST = ("anthropic", "claude-3-7-sonnet-latest")
127121
CLAUDE_3_7_SONNET_20250219 = ("anthropic", "claude-3-7-sonnet-20250219")
128122
CLAUDE_3_5_HAIKU_20241022 = ("anthropic", "claude-3-5-haiku-20241022")

notdiamond/settings.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,9 @@
144144
"anthropic": {
145145
"models": [
146146
"claude-2.1",
147-
"claude-3-opus-20240229",
148147
"claude-3-sonnet-20240229",
149148
"claude-3-haiku-20240307",
150149
"claude-3-5-haiku-20241022",
151-
"claude-3-5-sonnet-20240620",
152-
"claude-3-5-sonnet-20241022",
153-
"claude-3-5-sonnet-latest",
154150
"claude-3-7-sonnet-latest",
155151
"claude-3-7-sonnet-20250219",
156152
"claude-opus-4-20250514",
@@ -162,13 +158,9 @@
162158
],
163159
"api_key": ANTHROPIC_API_KEY,
164160
"support_tools": [
165-
"claude-3-opus-20240229",
166161
"claude-3-sonnet-20240229",
167162
"claude-3-haiku-20240307",
168-
"claude-3-5-sonnet-20240620",
169-
"claude-3-5-sonnet-20241022",
170163
"claude-3-5-haiku-20241022",
171-
"claude-3-5-sonnet-latest",
172164
"claude-3-7-sonnet-latest",
173165
"claude-3-7-sonnet-20250219",
174166
"claude-opus-4-20250514",
@@ -180,15 +172,11 @@
180172
],
181173
"support_response_model": [
182174
"claude-2.1",
183-
"claude-3-opus-20240229",
184175
],
185176
"openrouter_identifier": {
186177
"claude-2.1": "anthropic/claude-2.1",
187-
"claude-3-opus-20240229": "anthropic/claude-3-opus",
188178
"claude-3-sonnet-20240229": "anthropic/claude-3-sonnet",
189179
"claude-3-haiku-20240307": "anthropic/claude-3-haiku",
190-
"claude-3-5-sonnet-20240620": "anthropic/claude-3.5-sonnet-20240620",
191-
"claude-3-5-sonnet-latest": "anthropic/claude-3.5-sonnet",
192180
"claude-3-5-haiku-20241022": "anthropic/claude-3.5-haiku",
193181
"claude-3-7-sonnet-latest": "anthropic/claude-3.7-sonnet",
194182
"claude-3-7-sonnet-20250219": "anthropic/claude-3.7-sonnet",
@@ -201,13 +189,9 @@
201189
},
202190
"price": {
203191
"claude-2.1": {"input": 8.0, "output": 24.0},
204-
"claude-3-opus-20240229": {"input": 15.0, "output": 75.0},
205192
"claude-3-sonnet-20240229": {"input": 3.0, "output": 15.0},
206193
"claude-3-haiku-20240307": {"input": 0.25, "output": 1.25},
207194
"claude-3-5-haiku-20241022": {"input": 1.0, "output": 5.0},
208-
"claude-3-5-sonnet-20240620": {"input": 3.0, "output": 15.0},
209-
"claude-3-5-sonnet-20241022": {"input": 3.0, "output": 15.0},
210-
"claude-3-5-sonnet-latest": {"input": 3.0, "output": 15.0},
211195
"claude-3-7-sonnet-latest": {"input": 3.0, "output": 15.0},
212196
"claude-3-7-sonnet-20250219": {"input": 3.0, "output": 15.0},
213197
"claude-opus-4-20250514": {"input": 15.0, "output": 75.0},

tests/test_llm_calls/cassettes/test_anthropic/Test_Anthropic_LLMs.test_claude_3_5_sonnet_20241022_with_openai_tool_calling.yaml

Lines changed: 0 additions & 160 deletions
This file was deleted.

tests/test_llm_calls/cassettes/test_anthropic/Test_Anthropic_LLMs.test_claude_3_5_sonnet_20241022_with_tool_calling.yaml

Lines changed: 0 additions & 158 deletions
This file was deleted.

0 commit comments

Comments
 (0)