feat: implement Node.js backend server and frontend text chat interface

This commit is contained in:
techjarves committed 2026-06-15 09:14:43 +05:30
1 parent ed154d66d4
commit dbd222dc9a
3 files changed
+27 -19

No files matched your search

+3
View File
@@ -3440,7 +3440,10 @@ async function doLlmChat(req, res, body, retryCount = 0) {
"Cache-Control": "no-cache, no-transform",
"Connection": "keep-alive",
"X-Accel-Buffering": "no",
"X-Content-Type-Options": "nosniff",
});
const socket = res.socket || res.connection;
socket?.setNoDelay?.(true);
res.flushHeaders?.();
clientRes.on("data", (chunk) => res.write(chunk));
clientRes.on("end", () => res.end());