Spaces:
Paused
Paused
Commit
·
3cd6c6b
1
Parent(s):
1bb6e90
Update src/pages/api/llm.js
Browse files- src/pages/api/llm.js +1 -6
src/pages/api/llm.js
CHANGED
@@ -21,12 +21,7 @@ const handler = async (req) => {
|
|
21 |
|
22 |
let promptToSend = "You are a helpful assistant";
|
23 |
|
24 |
-
|
25 |
-
if (temperatureToUse == null) {
|
26 |
-
temperatureToUse = 0.8;
|
27 |
-
}
|
28 |
-
|
29 |
-
const stream = await LLMStream(model, promptToSend, temperatureToUse, key, messages, functions);
|
30 |
|
31 |
return new Response(stream);
|
32 |
} catch (error) {
|
|
|
21 |
|
22 |
let promptToSend = "You are a helpful assistant";
|
23 |
|
24 |
+
const stream = await LLMStream(model, promptToSend, 0.8, key, messages, functions);
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
return new Response(stream);
|
27 |
} catch (error) {
|