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]

Add gemini computer use tool support for responses api

Sameer Kankutea108c95d1a20
diff --git a/litellm/responses/litellm_completion_transformation/transformation.py b/litellm/responses/litellm_completion_transformation/transformation.py
index cd8403e2d80..e56622fc777 100644
--- a/litellm/responses/litellm_completion_transformation/transformation.py
+++ b/litellm/responses/litellm_completion_transformation/transformation.py
@@ -695,6 +695,8 @@ class LiteLLMCompletionResponsesConfig:
)
elif len(tool) == 1 and next(iter(tool)) in {e.value for e in VertexToolName}:
chat_completion_tools.append(tool)
+ elif tool.get("type") == "computer_use":
+ chat_completion_tools.append(tool)
else:
typed_tool = cast(FunctionToolParam, tool)
# Ensure parameters has "type": "object" as required by providers like Anthropic