This commit is contained in:
k
2026-09-21 11:47:59 +02:00
parent db14c9bf21
commit 0e44bf6364
4 changed files with 35 additions and 1 deletions
+4
View File
@@ -114,6 +114,10 @@ async function readJson(req: Request): Promise<{ ok: boolean; body: Record<strin
const server = Bun.serve({
port: config.port,
hostname: config.host,
// SSE chat streams can legitimately go silent for a while (cold model load,
// slow/thinking models). Bun's default 10s idle timeout would kill them
// mid-generation — disable it (0). Nginx in front has its own timeouts.
idleTimeout: 0,
async fetch(req, server) {
const url = new URL(req.url);
const path = url.pathname;