Skip to content

Commit bf5188e

Browse files
committed
feat: add idle timeout configuration for server
1 parent edd2875 commit bf5188e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/start.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,12 @@ export async function runServer(options: RunServerOptions): Promise<void> {
103103
consola.box(
104104
`🌐 Usage Viewer: https://ericc-ch.github.io/copilot-api?endpoint=${serverUrl}/usage`,
105105
)
106-
107106
serve({
108107
fetch: server.fetch as ServerHandler,
109108
port: options.port,
109+
bun: {
110+
idleTimeout: 255, // gemini timeout
111+
},
110112
})
111113
}
112114

0 commit comments

Comments
 (0)