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]

fix(types): import CachedTokensDetails on its own line in openai.py

mateo-berri6f7882db34b4
diff --git a/litellm/types/llms/openai.py b/litellm/types/llms/openai.py
index 9bdad700d4b..e3eac9b9205 100644
--- a/litellm/types/llms/openai.py
+++ b/litellm/types/llms/openai.py
@@ -82,7 +82,7 @@ from typing_extensions import (
override,
)
-from litellm.types.llms.base import BaseLiteLLMOpenAIResponseObject, CachedTokensDetails
+from litellm.types.llms.base import BaseLiteLLMOpenAIResponseObject
from litellm.types.responses.main import (
CustomToolCallOutputItem,
GenericResponseOutputItem,
@@ -91,6 +91,8 @@ from litellm.types.responses.main import (
OutputImageGenerationCall,
)
+from .base import CachedTokensDetails
+
FileContent = IO[bytes] | bytes | PathLike
FileTypes = (