Skip to content

Conversation

@mattt
Copy link
Contributor

@mattt mattt commented Dec 8, 2023

const replicate = new Replicate();

const model = "meta/llama-2-70b-chat";
const input = { prompt: "Write an ode to camelids" };
for await (const event of replicate.stream(model, { input })) {
    process.stdout.write(`${event}`);
};

@mattt mattt marked this pull request as ready for review December 11, 2023 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants