fix: Interface parameter asker, user cannot be seen in the conversation log #3735 (#3748)

This commit is contained in:
shaohuzhang1 2025-07-25 17:16:05 +08:00 committed by GitHub
parent 9a706c7ac5
commit 65ab0ef170
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,7 +107,10 @@ class ChatInfo:
}
else:
if asker:
self.chat_user = asker
if isinstance(asker, dict):
self.chat_user = asker
else:
self.chat_user = {'username': asker}
else:
self.chat_user = {'username': '游客'}
return self.chat_user