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

Commit a2089ea

Browse files
authored
Merge pull request #108 from Not-Diamond/ENG-3358_deprecate-sonnet-3.5
feat: update model references and remove deprecated tests for Claude models
2 parents 44f9ca0 + 6a055b8 commit a2089ea

12 files changed

Lines changed: 7 additions & 724 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ result, session_id, provider = client.chat.completions.create(
5151
{"role": "system", "content": "You are a helpful assistant."},
5252
{"role": "user", "content": "Concisely explain merge sort."} # Adjust as desired
5353
],
54-
model=['openai/gpt-3.5-turbo', 'openai/gpt-4o', 'anthropic/claude-3-5-sonnet-20240620']
54+
model=['openai/gpt-3.5-turbo', 'openai/gpt-4o', 'anthropic/claude-sonnet-4-5-20250929']
5555
)
5656

5757
print("ND session ID: ", session_id) # A unique ID of Not Diamond's recommendation

docs/source/intro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Create a new file in the same directory as your `.env` file and copy and run the
5353
{"role": "system", "content": "You are a helpful assistant."},
5454
{"role": "user", "content": "Consiely explain merge sort."} # Adjust as desired
5555
],
56-
model=['openai/gpt-3.5-turbo', 'openai/gpt-4o', 'anthropic/claude-3-5-sonnet-20240620']
56+
model=['openai/gpt-3.5-turbo', 'openai/gpt-4o', 'anthropic/claude-sonnet-4-5-20250929']
5757
)
5858
5959
print("ND session ID: ", session_id) # A unique ID of Not Diamond's recommendation

notdiamond/llms/providers.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class NDLLMProviders(Enum):
3434
CLAUDE_2_1 (NDLLMProvider): refers to 'claude-2.1' model by Anthropic
3535
CLAUDE_3_OPUS_20240229 (NDLLMProvider): refers to 'claude-3-opus-20240229' model by Anthropic
3636
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
3837
CLAUDE_3_7_SONNET_LATEST (NDLLMProvider): refers to 'claude-3-7-sonnet-latest' model by Anthropic
3938
CLAUDE_3_7_SONNET_20250219 (NDLLMProvider): refers to 'claude-3-7-sonnet-20250219' model by Anthropic
4039
CLAUDE_3_5_HAIKU_20241022 (NDLLMProvider): refers to 'claude-3-5-haiku-20241022' model by Anthropic
@@ -124,9 +123,6 @@ class NDLLMProviders(Enum):
124123
CLAUDE_2_1 = ("anthropic", "claude-2.1")
125124
CLAUDE_3_OPUS_20240229 = ("anthropic", "claude-3-opus-20240229")
126125
CLAUDE_3_SONNET_20240229 = ("anthropic", "claude-3-sonnet-20240229")
127-
CLAUDE_3_5_SONNET_20240620 = ("anthropic", "claude-3-5-sonnet-20240620")
128-
CLAUDE_3_5_SONNET_20241022 = ("anthropic", "claude-3-5-sonnet-20241022")
129-
CLAUDE_3_5_SONNET_LATEST = ("anthropic", "claude-3-5-sonnet-latest")
130126
CLAUDE_3_7_SONNET_LATEST = ("anthropic", "claude-3-7-sonnet-latest")
131127
CLAUDE_3_7_SONNET_20250219 = ("anthropic", "claude-3-7-sonnet-20250219")
132128
CLAUDE_3_5_HAIKU_20241022 = ("anthropic", "claude-3-5-haiku-20241022")

notdiamond/settings.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,6 @@
148148
"claude-3-sonnet-20240229",
149149
"claude-3-haiku-20240307",
150150
"claude-3-5-haiku-20241022",
151-
"claude-3-5-sonnet-20240620",
152-
"claude-3-5-sonnet-20241022",
153-
"claude-3-5-sonnet-latest",
154151
"claude-3-7-sonnet-latest",
155152
"claude-3-7-sonnet-20250219",
156153
"claude-opus-4-20250514",
@@ -169,10 +166,7 @@
169166
"claude-3-opus-20240229",
170167
"claude-3-sonnet-20240229",
171168
"claude-3-haiku-20240307",
172-
"claude-3-5-sonnet-20240620",
173-
"claude-3-5-sonnet-20241022",
174169
"claude-3-5-haiku-20241022",
175-
"claude-3-5-sonnet-latest",
176170
"claude-3-7-sonnet-latest",
177171
"claude-3-7-sonnet-20250219",
178172
"claude-opus-4-20250514",
@@ -195,8 +189,6 @@
195189
"claude-3-opus-20240229": "anthropic/claude-3-opus",
196190
"claude-3-sonnet-20240229": "anthropic/claude-3-sonnet",
197191
"claude-3-haiku-20240307": "anthropic/claude-3-haiku",
198-
"claude-3-5-sonnet-20240620": "anthropic/claude-3.5-sonnet-20240620",
199-
"claude-3-5-sonnet-latest": "anthropic/claude-3.5-sonnet",
200192
"claude-3-5-haiku-20241022": "anthropic/claude-3.5-haiku",
201193
"claude-3-7-sonnet-latest": "anthropic/claude-3.7-sonnet",
202194
"claude-3-7-sonnet-20250219": "anthropic/claude-3.7-sonnet",
@@ -217,9 +209,6 @@
217209
"claude-3-sonnet-20240229": {"input": 3.0, "output": 15.0},
218210
"claude-3-haiku-20240307": {"input": 0.25, "output": 1.25},
219211
"claude-3-5-haiku-20241022": {"input": 1.0, "output": 5.0},
220-
"claude-3-5-sonnet-20240620": {"input": 3.0, "output": 15.0},
221-
"claude-3-5-sonnet-20241022": {"input": 3.0, "output": 15.0},
222-
"claude-3-5-sonnet-latest": {"input": 3.0, "output": 15.0},
223212
"claude-3-7-sonnet-latest": {"input": 3.0, "output": 15.0},
224213
"claude-3-7-sonnet-20250219": {"input": 3.0, "output": 15.0},
225214
"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)