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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
absolute imports
Alex Shoop904e56babbbe
diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.pyindex 9d67ec1a867..668ba4c4b1f 100644--- a/litellm/litellm_core_utils/litellm_logging.py+++ b/litellm/litellm_core_utils/litellm_logging.py@@ -26,7 +26,7 @@ from typing import (cast,)-from .._uuid import uuid+from litellm._uuid import uuidfrom httpx import Responsefrom pydantic import BaseModeldiff --git a/litellm/llms/bedrock/common_utils.py b/litellm/llms/bedrock/common_utils.pyindex edfbca8fce6..63c366c9480 100644--- a/litellm/llms/bedrock/common_utils.py+++ b/litellm/llms/bedrock/common_utils.py@@ -774,7 +774,7 @@ class CommonBatchFilesUtils:Returns:Unique job name (≤ 63 characters for Bedrock compatibility)"""- from ..._uuid import uuid+ from litellm._uuid import uuidunique_id = str(uuid.uuid4())[:8]# Format: {prefix}-batch-{model}-{uuid}# Example: litellm-batch-claude-266c398ediff --git a/litellm/proxy/common_request_processing.py b/litellm/proxy/common_request_processing.pyindex 3807559b35d..a662015ee28 100644--- a/litellm/proxy/common_request_processing.py+++ b/litellm/proxy/common_request_processing.py@@ -14,7 +14,7 @@ from typing import (Union,)-from .._uuid import uuid+from litellm._uuid import uuidimport httpximport orjsonfrom fastapi import HTTPException, Request, statusdiff --git a/litellm/types/utils.py b/litellm/types/utils.pyindex e89a98fb2e0..dcfc0f66a1d 100644--- a/litellm/types/utils.py+++ b/litellm/types/utils.py@@ -13,7 +13,7 @@ from typing import (Union,)-from .._uuid import uuid+from litellm._uuid import uuidfrom aiohttp import FormDatafrom openai._models import BaseModel as OpenAIObjectfrom openai.types.audio.transcription_create_params import FileTypes # type: ignorediff --git a/litellm/utils.py b/litellm/utils.pyindex 6edb44e48d6..53a1710d685 100644--- a/litellm/utils.py+++ b/litellm/utils.py@@ -40,7 +40,7 @@ from os.path import abspath, dirname, joinimport aiohttpimport dotenv-from ._uuid import uuid+from litellm._uuid import uuidimport httpximport openaiimport tiktoken