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

@ -353,7 +353,7 @@ class ProxyLogging:
raise HTTPException(
status_code=400, detail={"error": response}
)
print_verbose(f"final data being sent to {call_type} call: {data}")
return data
except Exception as e:
raise e