Skip to content

Commit

Permalink
Fix ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
billytrend-cohere authored Nov 3, 2023
1 parent 6dce0c1 commit b83054e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ const cohere = new CohereClient({
});

for await (const chat of stream) {
if (chat.type === "text-generation") {
console.log(chat.text);
if (chat.eventType === "text-generation") {
process.stdout.write(chat.text);
}
}
})();
Expand Down Expand Up @@ -102,4 +102,4 @@ This SDK is in beta, and while we will try to avoid it, there may be breaking ch

While we value open-source contributions to this SDK, the code is generated programmatically. Additions made directly would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!

On the other hand, contributions to the README are always very welcome!
On the other hand, contributions to the README are always very welcome!

0 comments on commit b83054e

Please sign in to comment.