Spaces:
Paused
Paused
Download litellm/integrations/additional_logging_utils.py from DesertWolf/test3: direct link, hf CLI and curl.
- Browser
- Download file 927 Bytes
-
https://huggingface.co/spaces/DesertWolf/test3/resolve/main/litellm/integrations/additional_logging_utils.py
- Command line
-
hf download hf://spaces/DesertWolf/test3/litellm/integrations/additional_logging_utils.py
-
curl -L -o additional_logging_utils.py https://huggingface.co/spaces/DesertWolf/test3/resolve/main/litellm/integrations/additional_logging_utils.py
927 Bytes
| """ | |
| Base class for Additional Logging Utils for CustomLoggers | |
| - Health Check for the logging util | |
| - Get Request / Response Payload for the logging util | |
| """ | |
| from abc import ABC, abstractmethod | |
| from datetime import datetime | |
| from typing import Optional | |
| from litellm.types.integrations.base_health_check import IntegrationHealthCheckStatus | |
| class AdditionalLoggingUtils(ABC): | |
| def __init__(self): | |
| super().__init__() | |
| async def async_health_check(self) -> IntegrationHealthCheckStatus: | |
| """ | |
| Check if the service is healthy | |
| """ | |
| pass | |
| async def get_request_response_payload( | |
| self, | |
| request_id: str, | |
| start_time_utc: Optional[datetime], | |
| end_time_utc: Optional[datetime], | |
| ) -> Optional[dict]: | |
| """ | |
| Get the request and response payload for a given `request_id` | |
| """ | |
| return None | |