Skip to content

Commit

Permalink
Merge pull request #103 from langchain-ai/nc/compat-anyio
Browse files Browse the repository at this point in the history
Compat with anyio 4.x
  • Loading branch information
nfcampos authored Dec 7, 2023
2 parents e1a01b6 + 6946769 commit 32b6eda
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/app/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ class StreamMessagesHandler(BaseCallbackHandler):
def __init__(self, messages: Sequence[BaseMessage]) -> None:
self.messages = messages
self.output: Dict[UUID, ChatGenerationChunk] = {}
send_stream, receive_stream = create_memory_object_stream(
math.inf, item_type=dict | Exception
)
send_stream, receive_stream = create_memory_object_stream(math.inf)
self.send_stream = send_stream
self.receive_stream = receive_stream

Expand Down

0 comments on commit 32b6eda

Please sign in to comment.