Skip to content

Commit acf5579

Browse files
committed
Fixed bug #828
Fixed bug #828
1 parent da86fe2 commit acf5579

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythainlp/chat/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def chat(self, text:str)->str:
8787
if self.history!=[]:
8888
for h,b in self.history:
8989
_temp+=self.model.PROMPT_DICT['prompt_chatbot'].format_map({"human":h,"bot":b})+self.model.stop_token
90-
_temp+=self.model.PROMPT_DICT['prompt_chatbot'].format_map({"human":human,"bot":""})
90+
_temp+=self.model.PROMPT_DICT['prompt_chatbot'].format_map({"human":text,"bot":""})
9191
_bot = self.model.gen_instruct(_temp)
9292
self.history.append((text,_bot))
9393
return _bot

0 commit comments

Comments
 (0)