fix(core): a chunk timeout when processing llm stream (#16366)
This commit is contained in:
parent
4c4aed5a87
commit
69ddc91c35
4 changed files with 77 additions and 10 deletions
|
|
@ -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)
|
||||
},
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue