We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea4a75e commit 919b1d9Copy full SHA for 919b1d9
llms/main.py
@@ -1073,8 +1073,9 @@ async def chat_completion(chat):
1073
include_all_tools = False
1074
only_tools = []
1075
if "metadata" in chat:
1076
- only_tools = chat["metadata"].get("only_tools", "").split(",")
1077
- include_all_tools = only_tools == "all"
+ only_tools_str = chat["metadata"].get("only_tools", "")
+ include_all_tools = only_tools_str == "all"
1078
+ only_tools = only_tools_str.split(",")
1079
1080
if include_all_tools or len(only_tools) > 0:
1081
if "tools" not in current_chat:
0 commit comments