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
Fix mypy issues
Sameer Kankute2698c9218c10
diff --git a/litellm/responses/main.py b/litellm/responses/main.pyindex efe1607331f..38ee3c4b1c4 100644--- a/litellm/responses/main.py+++ b/litellm/responses/main.py@@ -613,10 +613,13 @@ def responses(# Update tools with provider-specific file IDs if neededif tools:- tools = update_responses_tools_with_model_file_ids(- tools=tools,- model_id=model_info_id,- model_file_id_mapping=model_file_id_mapping,+ tools = cast(+ Optional[Iterable[ToolParam]],+ update_responses_tools_with_model_file_ids(+ tools=tools,+ model_id=model_info_id,+ model_file_id_mapping=model_file_id_mapping,+ ),)local_vars["tools"] = tools