Spaces:
Paused
Paused
Commit
·
be1e35a
1
Parent(s):
8cd49d2
Update src/pages/api/llm.js
Browse files- src/pages/api/llm.js +2 -0
src/pages/api/llm.js
CHANGED
@@ -20,8 +20,10 @@ const handler = async (req) => {
|
|
20 |
};
|
21 |
|
22 |
let promptToSend = "You are a helpful assistant";
|
|
|
23 |
|
24 |
const stream = await LLMStream({ id: "gpt-3.5-turbo-0613" }, promptToSend, 0.8, messages, functions);
|
|
|
25 |
|
26 |
return new Response(stream);
|
27 |
} catch (error) {
|
|
|
20 |
};
|
21 |
|
22 |
let promptToSend = "You are a helpful assistant";
|
23 |
+
console.log(messages, promptToSend);
|
24 |
|
25 |
const stream = await LLMStream({ id: "gpt-3.5-turbo-0613" }, promptToSend, 0.8, messages, functions);
|
26 |
+
console.log(stream);
|
27 |
|
28 |
return new Response(stream);
|
29 |
} catch (error) {
|