1.0.0-beta.9 (2024-01-02)
Breaking Changes
listChatCompletions
andlistCompletions
are renamed tostreamChatCompletions
andstreamCompletions
respectively and their return types are updated to be aReadableStream
. For example,streamChatCompletions
can be used as follows:
const events = await client.streamChatCompletions(deploymentId, messages);
for await (const event of events) {
// use event ...
}