Skip to content

Fix debug output#22

Open
Yahiewi wants to merge 1 commit into
QuantStack:mainfrom
Yahiewi:debug-fix
Open

Fix debug output#22
Yahiewi wants to merge 1 commit 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant