The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
[Fix] Replace deprecated claude-3-7-sonnet in test_anthropic_completion, add store to OPENAI_CHAT_COMPLETION_PARAMS
yuneng-jiang5354cb26e100
diff --git a/litellm/constants.py b/litellm/constants.pyindex ee1b69f145d..89992b459c2 100644--- a/litellm/constants.py+++ b/litellm/constants.py@@ -603,6 +603,7 @@ OPENAI_CHAT_COMPLETION_PARAMS = ["prompt_cache_retention","safety_identifier","verbosity",+ "store",]OPENAI_TRANSCRIPTION_PARAMS = [diff --git a/tests/llm_translation/test_anthropic_completion.py b/tests/llm_translation/test_anthropic_completion.pyindex 405e0d2c82a..e2404371782 100644--- a/tests/llm_translation/test_anthropic_completion.py+++ b/tests/llm_translation/test_anthropic_completion.py@@ -1039,8 +1039,8 @@ def test_anthropic_citations_api_streaming():@pytest.mark.parametrize("model",[- "anthropic/claude-3-7-sonnet-20250219",- "bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0",+ "anthropic/claude-sonnet-4-5-20250929",+ "bedrock/us.anthropic.claude-sonnet-4-5-20250929-v1:0",],)def test_anthropic_thinking_output(model):@@ -1068,9 +1068,9 @@ def test_anthropic_thinking_output(model):@pytest.mark.parametrize("model",[- "anthropic/claude-3-7-sonnet-20250219",- # "bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0",- # "bedrock/invoke/us.anthropic.claude-3-7-sonnet-20250219-v1:0",+ "anthropic/claude-sonnet-4-5-20250929",+ # "bedrock/us.anthropic.claude-sonnet-4-5-20250929-v1:0",+ # "bedrock/invoke/us.anthropic.claude-sonnet-4-5-20250929-v1:0",],)def test_anthropic_thinking_output_stream(model):@@ -1152,8 +1152,8 @@ def test_anthropic_custom_headers():@pytest.mark.parametrize("model",[- "anthropic/claude-3-7-sonnet-20250219",- # "bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0",+ "anthropic/claude-sonnet-4-5-20250929",+ # "bedrock/us.anthropic.claude-sonnet-4-5-20250929-v1:0",],)def test_anthropic_thinking_in_assistant_message(model):@@ -1189,8 +1189,8 @@ def test_anthropic_thinking_in_assistant_message(model):@pytest.mark.parametrize("model",[- "anthropic/claude-3-7-sonnet-20250219",- # "bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0",+ "anthropic/claude-sonnet-4-5-20250929",+ # "bedrock/us.anthropic.claude-sonnet-4-5-20250929-v1:0",],)def test_anthropic_redacted_thinking_in_assistant_message(model):@@ -1226,7 +1226,7 @@ def test_just_system_message():litellm._turn_on_debug()litellm.modify_params = Trueparams = {- "model": "anthropic/claude-3-7-sonnet-20250219",+ "model": "anthropic/claude-sonnet-4-5-20250929","messages": [{"role": "system", "content": "You are a helpful assistant."}],}