Skip to content

Stream response from /generate #5

@8enmann

Description

@8enmann

Option 1: websockets
Option 2: built-in streaming using server send events
http://flask.pocoo.org/docs/0.12/patterns/streaming/
https://stackoverflow.com/a/13388915

In both cases, we probably want to decode the whole context so far at each yield (ie enc.decode(context)) rather than just the most recently predicted token to avoid accidentally breaking apart unicode characters

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions