From 069b3f0ff8a018a99a7e0e204bf13993d1e0b497 Mon Sep 17 00:00:00 2001 From: Shroominic Date: Sun, 26 Nov 2023 16:03:28 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Enable=20streaming=20in=20chatgpt.p?= =?UTF-8?q?y?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/chatgpt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/chatgpt.py b/examples/chatgpt.py index 24169cb..db8dd84 100644 --- a/examples/chatgpt.py +++ b/examples/chatgpt.py @@ -1,10 +1,11 @@ """ Simple chatgpt rebuild with memory/history. """ -from funcchain import chain +from funcchain import chain, settings from funcchain.streaming import stream_to from langchain.memory import ChatMessageHistory +settings.STREAMING = True history = ChatMessageHistory()