chore: Change create_tool endpoint on v1 routes to error instead of upsert (#2102)
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user