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_init_custom_logger_compatible_class_as_callback
Ishaan Jaffer2b069a343b20
diff --git a/tests/logging_callback_tests/test_unit_tests_init_callbacks.py b/tests/logging_callback_tests/test_unit_tests_init_callbacks.pyindex ffb54dd99c9..345c5b2f2ac 100644--- a/tests/logging_callback_tests/test_unit_tests_init_callbacks.py+++ b/tests/logging_callback_tests/test_unit_tests_init_callbacks.py@@ -209,26 +209,6 @@ async def use_callback_in_llm_call(patch.stopall()-async def test_init_custom_logger_compatible_class_as_callback():- init_env_vars()-- # used like litellm.callbacks = ["prometheus"]- for callback in litellm._known_custom_logger_compatible_callbacks:- print(f"Testing callback: {callback}")- reset_all_callbacks()-- await use_callback_in_llm_call(callback, used_in="callbacks")-- # used like this litellm.success_callback = ["prometheus"]- for callback in litellm._known_custom_logger_compatible_callbacks:- print(f"Testing callback: {callback}")- reset_all_callbacks()-- await use_callback_in_llm_call(callback, used_in="success_callback")-- reset_env_vars()-def test_dynamic_logging_global_callback():from litellm.litellm_core_utils.litellm_logging import Logging as LiteLLMLoggingObj