mirror of https://github.com/hwchase17/langchain
feat: Add with_history option for chatglm (#8048)
In certain 0-shot scenarios, the existing stateful language model can unintentionally send/accumulate the .history. This commit adds the "with_history" option to chatglm, allowing users to control the behavior of .history and prevent unintended accumulation. Possible reviewers @hwchase17 @baskaryan @mlot Refer to discussion over this thread: https://twitter.com/wey_gu/status/1681996149543276545?s=20pull/8071/head
parent
1f3b987860
commit
cf60cff1ef
Loading…
Reference in New Issue