mirror of
https://github.com/tiennm99/litellm.git
synced 2026-06-21 09:45:35 +00:00
480974e0f9
Replace all asyncio.iscoroutinefunction() calls with inspect.iscoroutinefunction() to fix Python 3.16 deprecation warnings throughout the entire codebase. Files updated: - litellm/litellm_core_utils/logging_utils.py - litellm/proxy/common_utils/performance_utils.py - litellm/proxy/management_endpoints/key_management_endpoints.py (2 occurrences) - litellm/proxy/management_endpoints/ui_sso.py - litellm/litellm_core_utils/redact_messages.py - litellm/integrations/custom_guardrail.py - tests/proxy_unit_tests/test_response_polling_handler.py This addresses Greptile's feedback about incomplete deprecation fixes. All instances now use the standard library inspect.iscoroutinefunction() which is the recommended approach and won't be deprecated.