mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
Fix deletion of original request (#16002)
This commit is contained in:
parent
ab8a3a5d9e
commit
25f12924c4
1 changed files with 1 additions and 1 deletions
|
|
@ -416,7 +416,7 @@ class VertexGeminiConfig(VertexAIBaseConfig, BaseConfig):
|
|||
|
||||
# Handle tools with 'type' field (OpenAI spec compliance) Ignore this field -> https://github.com/BerriAI/litellm/issues/14644#issuecomment-3342061838
|
||||
if "type" in tool:
|
||||
del tool["type"] # type: ignore
|
||||
tool = {k: tool[k] for k in tool if k != "type"}
|
||||
|
||||
tool_name = list(tool.keys())[0] if len(tool.keys()) == 1 else None
|
||||
if tool_name and (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue