Skip to content

Commit

Permalink
feat: logging 时增加用户名,thanks @slideslide !
Browse files Browse the repository at this point in the history
  • Loading branch information
GaiZhenbiao committed Jun 14, 2023
1 parent 8d36c97 commit 8addcbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def predict(

status_text = "开始生成回答……"
logging.info(
"输入为:" + colorama.Fore.BLUE + f"{inputs}" + colorama.Style.RESET_ALL
"用户" + f"{self.user_identifier}" + "的输入为:" + colorama.Fore.BLUE + f"{inputs}" + colorama.Style.RESET_ALL
)
if should_check_token_count:
yield chatbot + [(inputs, "")], status_text
Expand Down

0 comments on commit 8addcbc

Please sign in to comment.