Spaces:
Sleeping
Sleeping
Update index.js
Browse files
index.js
CHANGED
@@ -23,7 +23,7 @@ app.post("/api/chat", async (req, res) => {
|
|
23 |
"node-llama-cpp"
|
24 |
);
|
25 |
|
26 |
-
const reqData = await req.body;
|
27 |
|
28 |
const model = new LlamaModel({
|
29 |
modelPath: path.join(
|
|
|
23 |
"node-llama-cpp"
|
24 |
);
|
25 |
|
26 |
+
const reqData = await req.body.userInput;
|
27 |
|
28 |
const model = new LlamaModel({
|
29 |
modelPath: path.join(
|