Skip to content

fix replicate.stream example #196

Closed
@zeke

Description

@zeke

The docs for replicate.stream() don't have any input:

for await (const event of replicate.stream("meta/llama-2-70b-chat")) {
    process.stdout.write(`${event}`);
}

See https://github.com/replicate/replicate-javascript/tree/6dd5b21884e5dab8d137818e3c43ab14f4335f30#replicatestream

Let's update this to a working example.

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