Skip to content

Fix debug output#22

Merged
brichet merged 2 commits into
QuantStack:mainfrom
Yahiewi:debug-fix
Jul 10, 2026
Merged

Fix debug output#22
brichet merged 2 commits into
QuantStack:mainfrom
Yahiewi:debug-fix

Conversation

@Yahiewi

@Yahiewi Yahiewi commented Jul 9, 2026

Copy link
Copy Markdown
Member

As mentioned in PR #14, when stopping the stream, the LLM response continues generating in the background and the debug log contains the complete response.
Adding await to the self.flush() ensures that stopping the stream throws a StreamClosedError immediately, and stops the respnose and debug log from generating in the background.

Screencast.from.2026-07-09.16-31-10.mp4

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

Binder 👈 Launch a Binder on branch Yahiewi/jupyter-ai-tutor/debug-fix

@brichet brichet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Yahiewi

@brichet brichet added the bug Something isn't working label Jul 10, 2026
@brichet brichet merged commit b13ea13 into QuantStack:main Jul 10, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants