everydaycats commited on
Commit
c49cba4
·
verified ·
1 Parent(s): e545be1

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +3 -2
app.js CHANGED
@@ -67,6 +67,7 @@ wss.on('connection', (ws, req, user) => {
67
  ws.send(JSON.stringify({ type: 'status', status: 'thinking' }));
68
 
69
  // Call Core
 
70
  const response = await fetch(`${CORE_URL}/process`, {
71
  method: 'POST',
72
  headers: { 'Content-Type': 'application/json' },
@@ -74,10 +75,10 @@ wss.on('connection', (ws, req, user) => {
74
  userId: userId,
75
  projectId: data.projectId,
76
  prompt: data.content,
77
- context: data.context,
78
- history: data.history
79
  })
80
  });
 
81
 
82
  const result = await response.json();
83
 
 
67
  ws.send(JSON.stringify({ type: 'status', status: 'thinking' }));
68
 
69
  // Call Core
70
+
71
  const response = await fetch(`${CORE_URL}/process`, {
72
  method: 'POST',
73
  headers: { 'Content-Type': 'application/json' },
 
75
  userId: userId,
76
  projectId: data.projectId,
77
  prompt: data.content,
78
+ context: data.context
 
79
  })
80
  });
81
+
82
 
83
  const result = await response.json();
84