feat(llm): add response reducer (#34417)

This commit is contained in:
Shoubhit Dash
2026-06-29 16:26:33 +05:30
committed by GitHub
parent 702fe330f9
commit 2766fa0936
6 changed files with 324 additions and 22 deletions
+1
View File
@@ -115,6 +115,7 @@ describe("llm route", () => {
expect(events.map((event) => event.type)).toEqual(["text-delta", "finish"])
expect(response.events.map((event) => event.type)).toEqual(["text-delta", "finish"])
expect(response.message.content).toEqual([{ type: "text", text: 'echo:{"body":"hello"}' }])
}),
)