mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-05 22:25:05 +00:00
refactor: move logging_utils.py deprecation fix to PR #21396
- Remove asyncio.iscoroutinefunction deprecation fix from this PR - This change is better suited for PR #21396 (deprecation warnings) - Keeps PR #21394 focused on CI test reliability improvements
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import asyncio
|
||||
import functools
|
||||
import inspect
|
||||
import time
|
||||
from datetime import datetime
|
||||
from typing import TYPE_CHECKING, Any, List, Optional, Union
|
||||
@@ -271,7 +270,7 @@ def track_llm_api_timing():
|
||||
verbose_logger.debug(f"Error in service logging: {str(e)}")
|
||||
|
||||
# Check if the function is async or sync
|
||||
if inspect.iscoroutinefunction(func):
|
||||
if asyncio.iscoroutinefunction(func):
|
||||
return async_wrapper
|
||||
return sync_wrapper
|
||||
|
||||
|
||||
Reference in New Issue
Block a user