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

@@ -260,6 +260,7 @@ test("env variable takes precedence, config merges options", async () => {
anthropic: {
options: {
timeout: 60000,
chunkTimeout: 15000,
},
},
},
@@ -277,6 +278,7 @@ test("env variable takes precedence, config merges options", async () => {
expect(providers["anthropic"]).toBeDefined()
// Config options should be merged
expect(providers["anthropic"].options.timeout).toBe(60000)
expect(providers["anthropic"].options.chunkTimeout).toBe(15000)
},
})
})