Skip to content

How to generate by streaming when using CURL? #3

@JasonFuuuuuuuu

Description

@JasonFuuuuuuuu

curl -X 'POST'
'http://localhost:3000/generate'
-H 'accept: text/event-stream'
-H 'Content-Type: application/json'
-d '{
"prompt": "Explain superconductors like I'''m five years old",
"max_tokens": 1024
}'
How can I use stream?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions