mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-02 20:53:13 +08:00
update chatglm_llm.py
This commit is contained in:
parent
bb8224025e
commit
46b872a854
@ -52,7 +52,7 @@ class ChatGLM(BaseAnswer, LLM, ABC):
|
||||
for inum, (stream_resp, _) in enumerate(self.checkPoint.model.stream_chat(
|
||||
self.checkPoint.tokenizer,
|
||||
prompt,
|
||||
history=history[-self.history_len:] if self.history_len > 0 else [],
|
||||
history=history[-self.history_len:-1] if self.history_len > 1 else [],
|
||||
max_length=self.max_token,
|
||||
temperature=self.temperature
|
||||
)):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user