mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07: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:
parent
48105e650b
commit
ab912e5c8d
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue