feat(chat): files upload over HTTP before the prompt, up to 100 MiB each
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user