Chysev commited on
Commit
770fc7e
·
verified ·
1 Parent(s): cef2da9

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
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(