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 mypy issues

Sameer Kankutee4c1cfff9d83
diff --git a/litellm/responses/main.py b/litellm/responses/main.py
index 38ee3c4b1c4..8f524690be1 100644
--- a/litellm/responses/main.py
+++ b/litellm/responses/main.py
@@ -616,7 +616,7 @@ def responses(
tools = cast(
Optional[Iterable[ToolParam]],
update_responses_tools_with_model_file_ids(
- tools=tools,
+ tools=cast(Optional[List[Dict[str, Any]]], tools),
model_id=model_info_id,
model_file_id_mapping=model_file_id_mapping,
),