Skip to content

Commit

Permalink
Fixed bug #828
Browse files Browse the repository at this point in the history
Fixed bug #828
  • Loading branch information
wannaphong committed Jul 27, 2023
1 parent da86fe2 commit acf5579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pythainlp/chat/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def chat(self, text:str)->str:
if self.history!=[]:
for h,b in self.history:
_temp+=self.model.PROMPT_DICT['prompt_chatbot'].format_map({"human":h,"bot":b})+self.model.stop_token
_temp+=self.model.PROMPT_DICT['prompt_chatbot'].format_map({"human":human,"bot":""})
_temp+=self.model.PROMPT_DICT['prompt_chatbot'].format_map({"human":text,"bot":""})
_bot = self.model.gen_instruct(_temp)
self.history.append((text,_bot))
return _bot

0 comments on commit acf5579

Please sign in to comment.