Update lib/@randydev/together/cohere.js
Browse files
lib/@randydev/together/cohere.js
CHANGED
@@ -4,7 +4,7 @@ const cohere = new CohereClient({
|
|
4 |
token: process.env["COHERE_API_KEY"],
|
5 |
});
|
6 |
|
7 |
-
function CohereAI(message) {
|
8 |
const stream = await cohere.chatStream({
|
9 |
model: "command-r-08-2024",
|
10 |
message: `${message}`,
|
|
|
4 |
token: process.env["COHERE_API_KEY"],
|
5 |
});
|
6 |
|
7 |
+
async function CohereAI(message) {
|
8 |
const stream = await cohere.chatStream({
|
9 |
model: "command-r-08-2024",
|
10 |
message: `${message}`,
|