Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

chore: merge origin/main into test cleanup

kerry357e0fca8ebe
diff --cc tests/test_litellm/test_utils.py
index 3a376ac9397,6b872ccc26c..4de77f895ca
--- a/tests/test_litellm/test_utils.py
+++ b/tests/test_litellm/test_utils.py
@@@ -17,8 -17,12 +17,11 @@@ import pytes
import respx
from jsonschema import validate
-
import litellm
from litellm._internal_context import is_internal_call
+ from litellm.caching.caching import Cache
+ from litellm.caching.caching_handler import _PENDING_CACHE_WRITES
+ from litellm.constants import DEFAULT_MOCK_RESPONSE_COMPLETION_TOKEN_COUNT
from litellm._logging import (
CorrelationContextFilter,
JsonFormatter,
@@@ -31,7 -34,7 +33,8 @@@ from litellm.integrations.custom_logge
from litellm.litellm_core_utils.get_litellm_params import get_litellm_params
from litellm.litellm_core_utils.thread_pool_executor import executor as logging_executor
from litellm.proxy.utils import is_valid_api_key
+from litellm.types.router import CredentialLiteLLMParams, GenericLiteLLMParams
+ from litellm.types.integrations.custom_logger import HEADROOM_CONVERTED_STREAM_KEY
from litellm.types.utils import (
CallTypes,
Delta,
@@@ -40,10 -43,11 +43,11 @@@
PromptTokensDetailsWrapper,
StreamingChoices,
Usage,
+ all_litellm_params,
+ bedrock_batch_litellm_params,
)
-from litellm.types.utils import all_litellm_params, bedrock_batch_litellm_params
-from litellm.types.router import CredentialLiteLLMParams, GenericLiteLLMParams
from litellm.utils import (
+ CustomStreamWrapper,
ProviderConfigManager,
TextCompletionStreamWrapper,
_check_provider_match,