Skip to content

Commit

Permalink
Compat with anyio 4.xx
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Dec 7, 2023
1 parent e1a01b6 commit 6946769
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 6946769

Please sign in to comment.