feat(chat): files upload over HTTP before the prompt, up to 100 MiB each

This commit is contained in:
2026-10-23 21:25:41 +01:00
parent 39a68a00b3
commit e507f554c3
17 changed files with 634 additions and 74 deletions
+6
View File
@@ -386,6 +386,12 @@ const server = createServer(async (req, res) => {
proxyArtifact(req, res);
return;
}
// Chat files go to the server as their own request, outside the websocket
// frame limit; the server refuses a request without its custom name header.
if (pathname === "/chat-uploads" && req.method === "POST") {
proxyArtifact(req, res);
return;
}
if (pathname === "/favicon.ico") {
res.writeHead(204).end(); // no icon; keeps the console free of a 404
return;