fix(core): preserve the first terminal failure (#37705)
This commit is contained in:
parent
a288cb5a0c
commit
ba0bbdafaa
11 changed files with 35 additions and 39 deletions
|
|
@ -1290,8 +1290,6 @@ describe("OpenAI Responses route", () => {
|
|||
id: "call_1",
|
||||
name: "lookup",
|
||||
raw: '{"query":"partial',
|
||||
message: "Invalid JSON input for openai-responses tool call lookup",
|
||||
providerMetadata: { openai: { itemId: "item_1" } },
|
||||
})
|
||||
expect(response.finishReason).toBe("tool-calls")
|
||||
expect(response.events.some(LLMEvent.is.toolCall)).toBeFalse()
|
||||
|
|
|
|||
|
|
@ -104,7 +104,6 @@ describe("LLMResponse reducer", () => {
|
|||
id: "call_1",
|
||||
name: "lookup",
|
||||
raw: '{"query":"partial',
|
||||
message: "Invalid JSON input",
|
||||
}),
|
||||
])
|
||||
|
||||
|
|
|
|||
|
|
@ -81,7 +81,6 @@ describe("ToolStream", () => {
|
|||
id: "call_1",
|
||||
name: "lookup",
|
||||
raw: '{"query":"partial',
|
||||
message: "Invalid JSON input for test-route tool call lookup",
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
@ -112,7 +111,6 @@ describe("ToolStream", () => {
|
|||
id: "call_invalid",
|
||||
name: "lookup",
|
||||
raw: '{"query":"partial',
|
||||
message: "Invalid JSON input for test-route tool call lookup",
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue