mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
test token ctr
This commit is contained in:
parent
e57214dfab
commit
b9de10bd27
1 changed files with 3 additions and 3 deletions
|
|
@ -484,7 +484,7 @@ async def test_factory_anthropic_endpoint_calls_anthropic_counter():
|
|||
|
||||
# Mock the Anthropic CountTokens handler
|
||||
with patch(
|
||||
"litellm.llms.anthropic.common_utils.AnthropicCountTokensHandler"
|
||||
"litellm.llms.anthropic.count_tokens.handler.AnthropicCountTokensHandler"
|
||||
) as MockHandler:
|
||||
mock_handler_instance = MagicMock()
|
||||
mock_handler_instance.handle_count_tokens_request = AsyncMock(
|
||||
|
|
@ -541,7 +541,7 @@ async def test_factory_gpt4_endpoint_does_not_call_anthropic_counter():
|
|||
|
||||
# Mock the Anthropic CountTokens handler
|
||||
with patch(
|
||||
"litellm.llms.anthropic.common_utils.AnthropicCountTokensHandler"
|
||||
"litellm.llms.anthropic.count_tokens.handler.AnthropicCountTokensHandler"
|
||||
) as MockHandler:
|
||||
mock_handler_instance = MagicMock()
|
||||
mock_handler_instance.handle_count_tokens_request = AsyncMock(
|
||||
|
|
@ -600,7 +600,7 @@ async def test_factory_normal_token_counter_endpoint_does_not_call_anthropic():
|
|||
|
||||
# Mock the Anthropic CountTokens handler
|
||||
with patch(
|
||||
"litellm.llms.anthropic.common_utils.AnthropicCountTokensHandler"
|
||||
"litellm.llms.anthropic.count_tokens.handler.AnthropicCountTokensHandler"
|
||||
) as MockHandler:
|
||||
mock_handler_instance = MagicMock()
|
||||
mock_handler_instance.handle_count_tokens_request = AsyncMock(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue