Spaces:
Paused
Paused
matt HOFFNER
commited on
Commit
·
9daa0fe
1
Parent(s):
945f6e8
fix
Browse files- src/pages/api/llm.js +1 -1
src/pages/api/llm.js
CHANGED
|
@@ -20,7 +20,7 @@ const handler = async (req, res) => {
|
|
| 20 |
};
|
| 21 |
|
| 22 |
let promptToSend = "You are a helpful assistant";
|
| 23 |
-
const stream = LLMStream({ id: "gpt-3.5-turbo-0613" }, promptToSend, 0.8, messages, functions);
|
| 24 |
return new Response(stream);
|
| 25 |
} catch (error) {
|
| 26 |
console.error(error);
|
|
|
|
| 20 |
};
|
| 21 |
|
| 22 |
let promptToSend = "You are a helpful assistant";
|
| 23 |
+
const stream = await LLMStream({ id: "gpt-3.5-turbo-0613" }, promptToSend, 0.8, messages, functions);
|
| 24 |
return new Response(stream);
|
| 25 |
} catch (error) {
|
| 26 |
console.error(error);
|