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
Add gemini tools support for responses api
Sameer Kankutef59c2c117718
diff --git a/litellm/responses/litellm_completion_transformation/transformation.py b/litellm/responses/litellm_completion_transformation/transformation.pyindex 9149d0269b4..cd8403e2d80 100644--- a/litellm/responses/litellm_completion_transformation/transformation.py+++ b/litellm/responses/litellm_completion_transformation/transformation.py@@ -55,6 +55,8 @@ from litellm.types.utils import (ModelResponse,Usage,)+from litellm.types.llms.vertex_ai import VertexToolName+########### Initialize Classes used for Responses API ###########TOOL_CALLS_CACHE = InMemoryCache()@@ -691,6 +693,8 @@ class LiteLLMCompletionResponsesConfig:search_context_size=_search_context_size,user_location=_user_location,)+ elif len(tool) == 1 and next(iter(tool)) in {e.value for e in VertexToolName}:+ chat_completion_tools.append(tool)else:typed_tool = cast(FunctionToolParam, tool)# Ensure parameters has "type": "object" as required by providers like Anthropic