Skip to content

Commit

Permalink
Remove strict property from base tool if not set to true to avoid con…
Browse files Browse the repository at this point in the history
…flicts with azure openai
  • Loading branch information
VRSEN committed Oct 15, 2024
1 parent a825dad commit e0f9fbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agency_swarm/tools/BaseTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def openai_schema(cls):
for def_ in schema["parameters"]["$defs"].values():
def_["additionalProperties"] = False
else:
schema["strict"] = False
if "strict" in schema:
del schema["strict"]

return schema

Expand Down

0 comments on commit e0f9fbd

Please sign in to comment.