mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix imports
This commit is contained in:
parent
fec670c341
commit
8777e38880
2 changed files with 11 additions and 1 deletions
|
@ -4,7 +4,6 @@ from typing import TYPE_CHECKING, Any, Optional, Union
|
||||||
|
|
||||||
import litellm
|
import litellm
|
||||||
from litellm._logging import verbose_logger
|
from litellm._logging import verbose_logger
|
||||||
from litellm_proxy._types import UserAPIKeyAuth
|
|
||||||
|
|
||||||
from .integrations.custom_logger import CustomLogger
|
from .integrations.custom_logger import CustomLogger
|
||||||
from .integrations.datadog.datadog import DataDogLogger
|
from .integrations.datadog.datadog import DataDogLogger
|
||||||
|
@ -15,11 +14,14 @@ from .types.services import ServiceLoggerPayload, ServiceTypes
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from opentelemetry.trace import Span as _Span
|
from opentelemetry.trace import Span as _Span
|
||||||
|
|
||||||
|
from litellm_proxy._types import UserAPIKeyAuth
|
||||||
|
|
||||||
Span = Union[_Span, Any]
|
Span = Union[_Span, Any]
|
||||||
OTELClass = OpenTelemetry
|
OTELClass = OpenTelemetry
|
||||||
else:
|
else:
|
||||||
Span = Any
|
Span = Any
|
||||||
OTELClass = Any
|
OTELClass = Any
|
||||||
|
UserAPIKeyAuth = Any
|
||||||
|
|
||||||
|
|
||||||
class ServiceLogging(CustomLogger):
|
class ServiceLogging(CustomLogger):
|
||||||
|
|
|
@ -1,11 +1,19 @@
|
||||||
import copy
|
import copy
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
import uuid
|
import uuid
|
||||||
from unittest.mock import AsyncMock, MagicMock
|
from unittest.mock import AsyncMock, MagicMock
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from fastapi import Request
|
from fastapi import Request
|
||||||
|
|
||||||
|
sys.path.insert(
|
||||||
|
0, os.path.abspath("../../../..")
|
||||||
|
) # Adds the parent directory to the system path
|
||||||
|
|
||||||
|
|
||||||
import litellm
|
import litellm
|
||||||
|
import litellm_proxy
|
||||||
from litellm.integrations.opentelemetry import UserAPIKeyAuth
|
from litellm.integrations.opentelemetry import UserAPIKeyAuth
|
||||||
from litellm_proxy.common_request_processing import (
|
from litellm_proxy.common_request_processing import (
|
||||||
ProxyBaseLLMRequestProcessing,
|
ProxyBaseLLMRequestProcessing,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue