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
test_supports_tool_choice
Ishaan Jaff7695882d8a07
diff --git a/tests/test_litellm/test_utils.py b/tests/test_litellm/test_utils.pyindex c17535bf0ec..16d81f72d4a 100644--- a/tests/test_litellm/test_utils.py+++ b/tests/test_litellm/test_utils.py@@ -844,6 +844,7 @@ async def test_supports_tool_choice():or "o1" in model_nameor "o3" in model_nameor "mistral" in model_name+ or "oci" in model_name):continue@@ -2317,8 +2318,9 @@ def test_block_key_hashing_logic():Test that block_key() function only hashes keys that start with "sk-""""import hashlib+from litellm.proxy.utils import hash_token-+# Test cases: (input_key, should_be_hashed, expected_output)test_cases = [("sk-1234567890abcdef", True, hash_token("sk-1234567890abcdef")),@@ -2394,7 +2396,7 @@ def test_generate_gcp_iam_access_token_import_error():"""# Import the function first, before mockingfrom litellm._redis import _generate_gcp_iam_access_token-+# Mock the import to fail when the function tries to import google.cloud.iam_credentials_v1original_import = __builtins__['__import__']