Skip to content

Commit 36ee4d1

Browse files
authored
chore: deprecate claude-3-sonnet model (#2074)
1 parent af76f56 commit 36ee4d1

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

bigframes/ml/llm.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,10 +849,14 @@ class Claude3TextGenerator(base.RetriableRemotePredictor):
849849
850850
The models only available in specific regions. Check https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-claude#regions for details.
851851
852+
.. note::
853+
854+
claude-3-sonnet model is deprecated. Use other models instead.
855+
852856
Args:
853857
model_name (str, Default to "claude-3-sonnet"):
854858
The model for natural language tasks. Possible values are "claude-3-sonnet", "claude-3-haiku", "claude-3-5-sonnet" and "claude-3-opus".
855-
"claude-3-sonnet" is Anthropic's dependable combination of skills and speed. It is engineered to be dependable for scaled AI deployments across a variety of use cases.
859+
"claude-3-sonnet" (deprecated) is Anthropic's dependable combination of skills and speed. It is engineered to be dependable for scaled AI deployments across a variety of use cases.
856860
"claude-3-haiku" is Anthropic's fastest, most compact vision and text model for near-instant responses to simple queries, meant for seamless AI experiences mimicking human interactions.
857861
"claude-3-5-sonnet" is Anthropic's most powerful AI model and maintains the speed and cost of Claude 3 Sonnet, which is a mid-tier model.
858862
"claude-3-opus" is Anthropic's second-most powerful AI model, with strong performance on highly complex tasks.

tests/system/load/test_llm.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def test_llm_gemini_w_ground_with_google_search(llm_remote_text_df):
100100
# (b/366290533): Claude models are of extremely low capacity. The tests should reside in small tests. Moving these here just to protect BQML's shared capacity(as load test only runs once per day.) and make sure we still have minimum coverage.
101101
@pytest.mark.parametrize(
102102
"model_name",
103-
("claude-3-sonnet", "claude-3-haiku", "claude-3-5-sonnet", "claude-3-opus"),
103+
("claude-3-haiku", "claude-3-5-sonnet", "claude-3-opus"),
104104
)
105105
@pytest.mark.flaky(retries=3, delay=120)
106106
def test_claude3_text_generator_create_load(
@@ -125,7 +125,7 @@ def test_claude3_text_generator_create_load(
125125

126126
@pytest.mark.parametrize(
127127
"model_name",
128-
("claude-3-sonnet", "claude-3-haiku", "claude-3-5-sonnet", "claude-3-opus"),
128+
("claude-3-haiku", "claude-3-5-sonnet", "claude-3-opus"),
129129
)
130130
@pytest.mark.flaky(retries=3, delay=120)
131131
def test_claude3_text_generator_predict_default_params_success(
@@ -144,7 +144,7 @@ def test_claude3_text_generator_predict_default_params_success(
144144

145145
@pytest.mark.parametrize(
146146
"model_name",
147-
("claude-3-sonnet", "claude-3-haiku", "claude-3-5-sonnet", "claude-3-opus"),
147+
("claude-3-haiku", "claude-3-5-sonnet", "claude-3-opus"),
148148
)
149149
@pytest.mark.flaky(retries=3, delay=120)
150150
def test_claude3_text_generator_predict_with_params_success(
@@ -165,7 +165,7 @@ def test_claude3_text_generator_predict_with_params_success(
165165

166166
@pytest.mark.parametrize(
167167
"model_name",
168-
("claude-3-sonnet", "claude-3-haiku", "claude-3-5-sonnet", "claude-3-opus"),
168+
("claude-3-haiku", "claude-3-5-sonnet", "claude-3-opus"),
169169
)
170170
@pytest.mark.flaky(retries=3, delay=120)
171171
def test_claude3_text_generator_predict_multi_col_success(

0 commit comments

Comments
 (0)