Skip to content

Commit

Permalink
Add reset chat
Browse files Browse the repository at this point in the history
  • Loading branch information
wannaphong committed Jul 14, 2023
1 parent 770682d commit 5522ac2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pythainlp/chat/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ def __init__(self):
Chat with AI generation
"""
self.history = []
def reset_chat(self):
"""
Reset chat by clean history
"""
self.history = []
def load_model(
self,
model_name:str="wangchanglm",
Expand Down

0 comments on commit 5522ac2

Please sign in to comment.