mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-29 10:26:23 +02:00
Check for tool params safely
This commit is contained in:
parent
4261c70a2b
commit
467d141690
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ class Swarm:
|
|||
for tool in funcs_and_tools:
|
||||
params = tool["function"]["parameters"]
|
||||
params["properties"].pop(__CTX_VARS_NAME__, None)
|
||||
if __CTX_VARS_NAME__ in params["required"]:
|
||||
if __CTX_VARS_NAME__ in params.get("required", []):
|
||||
params["required"].remove(__CTX_VARS_NAME__)
|
||||
|
||||
create_params = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue