Chysev commited on
Commit
5d44b0a
·
verified ·
1 Parent(s): ac0558b

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.json()
27
  const Question = reqData.userInput;
28
 
29
  const model = new LlamaModel({
 
23
  "node-llama-cpp"
24
  );
25
 
26
+ const reqData = await req.body;
27
  const Question = reqData.userInput;
28
 
29
  const model = new LlamaModel({