getzero11 commited on
Commit
382d14e
·
verified ·
1 Parent(s): 92900e1

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +2 -1
server.js CHANGED
@@ -98,7 +98,8 @@ app.get("/", (req, res) => {
98
  app.post("/run", async (req, res) => {
99
  console.log("Incoming body:", req.body);
100
 
101
- const { task, provider, model, ...payload } = req.body;
 
102
  if (!TASKS.has(task)) {
103
  return res.status(400).json({ error: "Unknown task" });
104
  }
 
98
  app.post("/run", async (req, res) => {
99
  console.log("Incoming body:", req.body);
100
 
101
+ const { task = "market_research", provider, model, ...payload } = req.body;
102
+
103
  if (!TASKS.has(task)) {
104
  return res.status(400).json({ error: "Unknown task" });
105
  }