fix(core): a chunk timeout when processing llm stream (#16366)

This commit is contained in:
James Long
2026-03-10 11:12:14 -04:00
committed by GitHub
parent 4c4aed5a87
commit 69ddc91c35
4 changed files with 77 additions and 10 deletions

View File

@@ -972,6 +972,14 @@ export namespace Config {
.describe(
"Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout.",
),
chunkTimeout: z
.number()
.int()
.positive()
.optional()
.describe(
"Timeout in milliseconds between streamed SSE chunks for this provider. If no chunk arrives within this window, the request is aborted.",
),
})
.catchall(z.any())
.optional(),