fraudTech commited on
Commit
4622f45
·
1 Parent(s): 7371220

remove modes

Browse files
Files changed (1) hide show
  1. gateway.ts +1 -2
gateway.ts CHANGED
@@ -230,7 +230,7 @@ app.post('/api/chat/clear', apiLimiter, authenticateToken, async (req, res) => {
230
  // Proxy to backend - chat endpoint with SSE streaming
231
  app.post('/api/chat', apiLimiter, authenticateToken, async (req, res) => {
232
  try {
233
- const { message, apiKey, model, webSearchEnabled, assistantMode } = req.body;
234
  const user = (req as any).user;
235
  const authHeader = req.headers['authorization'];
236
  const forwardedUserJwt = typeof authHeader === 'string' ? authHeader : undefined;
@@ -254,7 +254,6 @@ app.post('/api/chat', apiLimiter, authenticateToken, async (req, res) => {
254
  message,
255
  model,
256
  webSearchEnabled,
257
- assistantMode,
258
  user: { username: user.username, name: user.name }
259
  }, {
260
  // Increased timeout to 5 minutes (300s) to handle long-running operations
 
230
  // Proxy to backend - chat endpoint with SSE streaming
231
  app.post('/api/chat', apiLimiter, authenticateToken, async (req, res) => {
232
  try {
233
+ const { message, apiKey, model, webSearchEnabled } = req.body;
234
  const user = (req as any).user;
235
  const authHeader = req.headers['authorization'];
236
  const forwardedUserJwt = typeof authHeader === 'string' ? authHeader : undefined;
 
254
  message,
255
  model,
256
  webSearchEnabled,
 
257
  user: { username: user.username, name: user.name }
258
  }, {
259
  // Increased timeout to 5 minutes (300s) to handle long-running operations