Skip to content

Commit

Permalink
fix print log
Browse files Browse the repository at this point in the history
  • Loading branch information
RexWzh committed Jun 23, 2024
1 parent cc2bbf7 commit 72d5a9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chattool/chattype.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def display_role_content(dic:dict, sep:Union[str, None]=None):
return f"{sep}{role}{sep}calling tool:\n{pformat(tools)}"
if 'function_call' in dic:
return f"{sep}{role}{sep}calling function:\n{pformat(dic['function_call'])}"
return f"{sep}{role}{sep}{content}"
else:
raise Exception(f"Unknown role {role}")

Expand Down

0 comments on commit 72d5a9d

Please sign in to comment.