-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
fixed in v4Issues addressed by v4Issues addressed by v4
Description
I'm a bit lost as to how to actually use stream: true in this library.
Example incorrect syntax:
const res = await openai.createCompletion({
model: "text-davinci-002",
prompt: "Say this is a test",
max_tokens: 6,
temperature: 0,
stream: true,
});
res.onmessage = (event) => {
console.log(event.data);
}mattgabor, Awendel, runvnc, vagoel, AnimeAllstar and 49 more
Metadata
Metadata
Assignees
Labels
fixed in v4Issues addressed by v4Issues addressed by v4