Spaces:
Runtime error
Runtime error
add deepseek-reasoner model to web version
Browse files163 unmodified lines1641651661671681691707 unmodified lines178179180181182183163 unmodified lines// Proxy to backend - chat endpoint with SSE streamingapp.post('/api/chat', apiLimiter, authenticateToken, async (req, res) => {try {const { message, apiKey } = req.body;const user = (req as any).user;console.log('📨 Received chat request from:', user.username);7 unmodified lines// Forward request to backend with streamingconst response = await axios.post(`${BACKEND_URL}/api/chat`, {message,user: { username: user.username, name: user.name }}, {// Increased timeout to 5 minutes (300s) to handle long-running operations163 unmodified lines1641651661671681691707 unmodified lines178179180181182183184163 unmodified lines// Proxy to backend - chat endpoint with SSE streamingapp.post('/api/chat', apiLimiter, authenticateToken, async (req, res) => {try {const { message, apiKey, model } = req.body;const user = (req as any).user;console.log('📨 Received chat request from:', user.username);7 unmodified lines// Forward request to backend with streamingconst response = await axios.post(`${BACKEND_URL}/api/chat`, {message,model,user: { username: user.username, name: user.name }}, {// Increased timeout to 5 minutes (300s) to handle long-running operations
gateway.ts+2-1