Skip to content

Commit cbd175c

Browse files
committed
Add chat tools logging
1 parent ec52d5e commit cbd175c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llms/main.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2974,6 +2974,11 @@ def create_chat_with_tools(self, chat: Dict[str, Any], use_tools: str = "all") -
29742974
if "tools" not in current_chat:
29752975
current_chat["tools"] = []
29762976

2977+
_dbg(
2978+
f"create_chat_with_tools: all_tools:{include_all_tools}, only_tools:{only_tools_list}, chat tools: "
2979+
+ str(len(current_chat["tools"]))
2980+
)
2981+
29772982
existing_tools = {t["function"]["name"] for t in current_chat["tools"]}
29782983
for tool_def in self.tool_definitions:
29792984
name = tool_def["function"]["name"]

0 commit comments

Comments
 (0)