feat(ux): Implement advanced reasoning view with progress tracking and refined Markdown rendering.
This commit is contained in:
@@ -22,14 +22,14 @@ describe("ChatService SSE Parsing", () => {
|
||||
const events = ChatService.parseSSEChunk(rawChunk)
|
||||
|
||||
expect(events).toHaveLength(2)
|
||||
expect(events[1].data.chunk).toBe(" World")
|
||||
expect(events[1].data!.chunk).toBe(" World")
|
||||
})
|
||||
|
||||
it("should parse encoded plots from executor node", () => {
|
||||
const rawChunk = `data: {"type": "on_chain_end", "name": "executor", "data": {"encoded_plots": ["base64data"]}}\n\n`
|
||||
const events = ChatService.parseSSEChunk(rawChunk)
|
||||
|
||||
expect(events[0].data.encoded_plots).toEqual(["base64data"])
|
||||
expect(events[0].data!.encoded_plots).toEqual(["base64data"])
|
||||
})
|
||||
|
||||
it("should identify the done event", () => {
|
||||
|
||||
Reference in New Issue
Block a user