Skip to content

Commit

Permalink
doc: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusschiesser committed Apr 24, 2024
1 parent 17ad63d commit eb9a36c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/types/streaming/fastapi/app/api/routers/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async def content_generator():
async def _text_generator():
async for token in response.async_response_gen():
yield VercelStreamResponse.convert_text(token)
# TODO: ideally we don't need is_done and we just consume till _text_generator is finished below
# the text_generator is the leading stream, once it's finished, also finish the event stream
event_handler.is_done = True

# Yield the events from the event handler
Expand Down

0 comments on commit eb9a36c

Please sign in to comment.