feat(chat): files upload over HTTP before the prompt, up to 100 MiB each
This commit is contained in:
@@ -123,7 +123,7 @@ export async function start({ root = resolve('build/web'), upstream = 'http://12
|
||||
if (!['GET', 'HEAD', 'POST'].includes(req.method)) {
|
||||
res.setHeader('Allow', 'GET, HEAD, POST'); return reply(res, 405);
|
||||
}
|
||||
if (pathname === '/login' || pathname === '/logout' || pathname.startsWith('/artifacts/')) return proxy(req, res, target);
|
||||
if (pathname === '/login' || pathname === '/logout' || pathname === '/chat-uploads' || pathname.startsWith('/artifacts/')) return proxy(req, res, target);
|
||||
if (req.method !== 'GET' && req.method !== 'HEAD') return reply(res, 405);
|
||||
authCheck(req, target, (authenticated) => {
|
||||
if (res.destroyed) return;
|
||||
|
||||
Reference in New Issue
Block a user