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

@@ -93,7 +93,7 @@ def main():
functions = [first_secret_word, second_secret_word, third_secret_word, fourth_secret_word, auto_error]
tools = []
for func in functions:
tool = client.create_tool(func)
tool = client.create_or_update_tool(func)
tools.append(tool)
tool_names = [t.name for t in tools[:-1]]