chore: Change create_tool endpoint on v1 routes to error instead of upsert (#2102)

This commit is contained in:
Matthew Zhou
2024-11-25 10:46:15 -08:00
committed by GitHub
parent f237717ce4
commit 8711e1dc00
17 changed files with 271 additions and 259 deletions

View File

@@ -136,7 +136,7 @@ def add_tool(
func = eval(func_def.name)
# 4. Add or update the tool
tool = client.create_tool(func=func, name=name, tags=tags, update=update)
tool = client.create_or_update_tool(func=func, name=name, tags=tags, update=update)
print(f"Tool {tool.name} added successfully")