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: fix ruff check

Krrish Dholakia45d32dc90f74
diff --git a/litellm/llms/mistral/chat/transformation.py b/litellm/llms/mistral/chat/transformation.py
index 385057bb45a..3ba925c1ba5 100644
--- a/litellm/llms/mistral/chat/transformation.py
+++ b/litellm/llms/mistral/chat/transformation.py
@@ -28,11 +28,7 @@ from litellm.litellm_core_utils.prompt_templates.common_utils import (
)
from litellm.llms.openai.chat.gpt_transformation import OpenAIGPTConfig
from litellm.secret_managers.main import get_secret_str
-from litellm.types.llms.mistral import (
- MistralTextBlock,
- MistralThinkingBlock,
- MistralToolCallMessage,
-)
+from litellm.types.llms.mistral import MistralThinkingBlock, MistralToolCallMessage
from litellm.types.llms.openai import AllMessageValues
from litellm.types.utils import ModelResponse
from litellm.utils import convert_to_model_response_object
diff --git a/litellm/responses/main.py b/litellm/responses/main.py
index ebd0ad4f42d..0d7c4f732c6 100644
--- a/litellm/responses/main.py
+++ b/litellm/responses/main.py
@@ -1,7 +1,7 @@
import asyncio
import contextvars
from functools import partial
-from typing import Any, Coroutine, Dict, Iterable, List, Literal, Optional, Union, cast
+from typing import Any, Coroutine, Dict, Iterable, List, Literal, Optional, Union
import httpx