refactor(chat_manager.py): add continue statement to clear_history block to skip message processing
This commit is contained in:
parent
ea210af19b
commit
167d6c0f1e
1 changed files with 1 additions and 0 deletions
|
|
@ -144,6 +144,7 @@ class ChatManager:
|
|||
payload = json_payload
|
||||
if "clear_history" in payload:
|
||||
self.chat_history.history[client_id] = []
|
||||
continue
|
||||
|
||||
with self.cache_manager.set_client_id(client_id):
|
||||
await self.process_message(client_id, payload)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue