mirror of
https://github.com/wassname/stampy-chat.git
synced 2026-09-28 14:46:43 +08:00
test logging
This commit is contained in:
@@ -41,7 +41,7 @@ class ChatLogger(Logger):
|
||||
def is_debug(self):
|
||||
return self.isEnabledFor(DEBUG)
|
||||
|
||||
def interaction(self, session_id, query, response, history, prompt, blocks):
|
||||
def interaction(self, session_id: str, query: str, response: str, history, prompt, blocks):
|
||||
prompt = [i for i in prompt if i.get('role') == 'system']
|
||||
prompt = prompt[0].get('content') if prompt else None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user