feat: implement Node.js backend server and frontend text chat interface
This commit is contained in:
1 parent
ed154d66d4
commit
dbd222dc9a
3 files changed
+27
-19
No files matched your search
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user