fix(utils.py): cleanup 'additionalProperties=False' for tool calling with zod

Fixes issue with zod passing in additionalProperties=False, causing vertex ai / gemini calls to fail
This commit is contained in:
Krrish Dholakia 2024-07-06 17:27:14 -07:00
parent 25a0066123
commit 20e39d6acc
6 changed files with 27 additions and 4 deletions

View file

@ -2720,6 +2720,10 @@ async def chat_completion(
except:
data = json.loads(body_str)
verbose_proxy_logger.debug(
"Request received by LiteLLM:\n{}".format(json.dumps(data, indent=4)),
)
data = await add_litellm_data_to_request(
data=data,
request=request,