Skip to content

Commit 41cdb55

Browse files
foxy1402Copilot
andcommitted
Fix duplicate userAgent declaration
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c3d7247 commit 41cdb55

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/routes/chat.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ router.post('/', (req, res) => {
6060
const id = newId('chatcmpl');
6161

6262
// Debug: Log prompt for IDE tools
63-
const userAgent = req.headers['user-agent'] || '';
6463
if (userAgent.includes('Continue') || userAgent.includes('Zed') || userAgent.includes('Cursor')) {
6564
console.log('[IDE Prompt]', prompt.substring(0, 150) + (prompt.length > 150 ? '...' : ''));
6665
}

0 commit comments

Comments
 (0)