Skip to content

Commit

Permalink
✨ Enable streaming in chatgpt.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Nov 26, 2023
1 parent 72ec6d4 commit 069b3f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/chatgpt.py
Original file line number Diff line number Diff line change
@@ -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()

Expand Down

0 comments on commit 069b3f0

Please sign in to comment.