Skip to content

Support streaming to pipe #43

@johnd0e

Description

@johnd0e

Describe the bug
When using in terminal text streaming works as it should, but when piping output - it shows up all at once.

To Reproduce

pytgpt generate --quiet --disable-conversation "Write a short story"|less

Expected behavior
When I pipe other utilities to less - I see output appear line by line.

Environment:

  • os version: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions