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 delete callbacks
Ishaan Jaffer8a9fe7b056f6
diff --git a/tests/test_litellm/litellm_core_utils/test_litellm_logging.py b/tests/test_litellm/litellm_core_utils/test_litellm_logging.pyindex 5c2f84cd872..d6cf24f6568 100644--- a/tests/test_litellm/litellm_core_utils/test_litellm_logging.py+++ b/tests/test_litellm/litellm_core_utils/test_litellm_logging.py@@ -585,7 +585,7 @@ async def test_e2e_generate_cold_storage_object_key_successful():# Verify the S3 function was called with correct parametersmock_get_s3_key.assert_called_once_with(s3_path="", # Empty path as default- team_alias_prefix="", # No team alias prefix for cold storage+ prefix="", # No prefix for cold storagestart_time=start_time,s3_file_name="time-10-30-45-123456_chatcmpl-test-12345",)diff --git a/tests/test_litellm/proxy/client/test_chat.py b/tests/test_litellm/proxy/client/test_chat.pyindex 868d9287692..4de58723761 100644--- a/tests/test_litellm/proxy/client/test_chat.py+++ b/tests/test_litellm/proxy/client/test_chat.py@@ -3,13 +3,14 @@ import sysimport pytestimport requests-import responsessys.path.insert(0, os.path.abspath("../../..")) # Adds the parent directory to the system path+import responses+from litellm.proxy.client.chat import ChatClientfrom litellm.proxy.client.exceptions import UnauthorizedErrordiff --git a/tests/test_litellm/proxy/client/test_credentials.py b/tests/test_litellm/proxy/client/test_credentials.pyindex 702872a5896..580bbb39dc0 100644--- a/tests/test_litellm/proxy/client/test_credentials.py+++ b/tests/test_litellm/proxy/client/test_credentials.py@@ -3,13 +3,14 @@ import sysimport pytestimport requests-import responsessys.path.insert(0, os.path.abspath("../../..")) # Adds the parent directory to the system path+import responses+from litellm.proxy.client.credentials import CredentialsManagementClientfrom litellm.proxy.client.exceptions import UnauthorizedErrordiff --git a/tests/test_litellm/proxy/client/test_http_client.py b/tests/test_litellm/proxy/client/test_http_client.pyindex b85724139be..3d8fe44438a 100644--- a/tests/test_litellm/proxy/client/test_http_client.py+++ b/tests/test_litellm/proxy/client/test_http_client.py@@ -6,13 +6,14 @@ import sysimport pytestimport requests-import responsessys.path.insert(0, os.path.abspath("../../..")) # Adds the parent directory to the system path+import responses+from litellm.proxy.client.http_client import HTTPClientdiff --git a/tests/test_litellm/proxy/client/test_http_commands.py b/tests/test_litellm/proxy/client/test_http_commands.pyindex d1dea3a5541..16579cfffbc 100644--- a/tests/test_litellm/proxy/client/test_http_commands.py+++ b/tests/test_litellm/proxy/client/test_http_commands.py@@ -5,7 +5,6 @@ import osimport sysimport pytest-import responsesfrom click.testing import CliRunnersys.path.insert(@@ -13,6 +12,8 @@ sys.path.insert() # Adds the parent directory to the system path+import responses+from litellm.proxy.client.cli.commands.http import httpdiff --git a/tests/test_litellm/proxy/client/test_keys.py b/tests/test_litellm/proxy/client/test_keys.pyindex 06cedf13104..136408e01ac 100644--- a/tests/test_litellm/proxy/client/test_keys.py+++ b/tests/test_litellm/proxy/client/test_keys.py@@ -3,13 +3,14 @@ import sysimport pytestimport requests-import responsessys.path.insert(0, os.path.abspath("../../..")) # Adds the parent directory to the system path+import responses+from litellm.proxy.client.exceptions import UnauthorizedErrorfrom litellm.proxy.client.keys import KeysManagementClientdiff --git a/tests/test_litellm/proxy/client/test_model_groups.py b/tests/test_litellm/proxy/client/test_model_groups.pyindex 3a4f1b157c3..1c87672e723 100644--- a/tests/test_litellm/proxy/client/test_model_groups.py+++ b/tests/test_litellm/proxy/client/test_model_groups.py@@ -3,13 +3,14 @@ import sysimport pytestimport requests-import responsessys.path.insert(0, os.path.abspath("../../..")) # Adds the parent directory to the system path+import responses+from litellm.proxy.client import Client, ModelGroupsManagementClientfrom litellm.proxy.client.exceptions import UnauthorizedErrordiff --git a/tests/test_litellm/proxy/client/test_models.py b/tests/test_litellm/proxy/client/test_models.pyindex ffb6d89f577..0957c98f9e2 100644--- a/tests/test_litellm/proxy/client/test_models.py+++ b/tests/test_litellm/proxy/client/test_models.py@@ -3,7 +3,6 @@ import sysimport pytestimport requests-import responsessys.path.insert(0, os.path.abspath("../../..")@@ -11,6 +10,8 @@ sys.path.insert(+import responses+from litellm.proxy.client import Client, ModelsManagementClientfrom litellm.proxy.client.exceptions import NotFoundError, UnauthorizedErrordiff --git a/tests/test_litellm/proxy/management_endpoints/test_delete_callbacks_endpoint.py b/tests/test_litellm/proxy/management_endpoints/test_delete_callbacks_endpoint.pyindex 4d6a81b481a..9dac72aac44 100644--- a/tests/test_litellm/proxy/management_endpoints/test_delete_callbacks_endpoint.py+++ b/tests/test_litellm/proxy/management_endpoints/test_delete_callbacks_endpoint.py@@ -9,7 +9,12 @@ sys.path.insert(0, os.path.abspath("../../../.."))-from litellm.proxy._types import CallbackDelete, ConfigYAML, LitellmUserRoles, UserAPIKeyAuth+from litellm.proxy._types import (+ CallbackDelete,+ ConfigYAML,+ LitellmUserRoles,+ UserAPIKeyAuth,+)from litellm.proxy.proxy_server import appclient = TestClient(app)@@ -101,11 +106,11 @@ def mock_prisma():return MockPrismaClient()-def mock_encrypt_value_helper(value):+def mock_encrypt_value_helper(value, key=None, new_encryption_key=None):"""Mock encryption - just return the value as-is for testing"""return value-def mock_decrypt_value_helper(value):+def mock_decrypt_value_helper(value, key=None, return_original_value=False):"""Mock decryption - just return the value as-is for testing"""return value