mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
Add gemini computer use tool support for responses api
This commit is contained in:
parent
f59c2c1177
commit
a108c95d1a
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue