Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Print response as it streams #23

Merged
merged 2 commits into from
Dec 5, 2022
Merged

Conversation

scottleibrand
Copy link
Contributor

As the response streams in from ChatGPT, print each line as soon as it is fully received, wrapping at 80 characters. (TODO: make that wrap automatically based on terminal width.)

@scottleibrand scottleibrand mentioned this pull request Dec 5, 2022
Copy link
Owner

@acheong08 acheong08 left a comment

Choose a reason for hiding this comment

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

Looks good. Will test and publish when I have time later today

@acheong08 acheong08 merged commit b930d1f into acheong08:main Dec 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants