Skip to content

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]

test_stream_token_counting_anthropic_with_include_usage

Ishaan Jaffera964e7f24c91
diff --git a/tests/logging_callback_tests/test_token_counting.py b/tests/logging_callback_tests/test_token_counting.py
index a68690892ac..4c8efa4989c 100644
--- a/tests/logging_callback_tests/test_token_counting.py
+++ b/tests/logging_callback_tests/test_token_counting.py
@@ -198,7 +198,7 @@ async def test_stream_token_counting_anthropic_with_include_usage():
# print making the same request with anthropic client
anthropic_response = anthropic_client.messages.create(
- model="claude-3-5-sonnet-20240620",
+ model="claude-sonnet-4-5-20250929",
max_tokens=4096,
messages=[{"role": "user", "content": input_text}],
stream=True,