From 5a230becd894ca2822dd926ea87adf096a4b862c Mon Sep 17 00:00:00 2001 From: leehuwuj <leehuwuj@gmail.com> Date: Tue, 18 Feb 2025 16:00:02 +0700 Subject: [PATCH] bump chat-ui --- .../streaming/fastapi/app/api/routers/vercel_response.py | 4 +--- templates/types/streaming/nextjs/package.json | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/types/streaming/fastapi/app/api/routers/vercel_response.py b/templates/types/streaming/fastapi/app/api/routers/vercel_response.py index 339ca995..83952b21 100644 --- a/templates/types/streaming/fastapi/app/api/routers/vercel_response.py +++ b/templates/types/streaming/fastapi/app/api/routers/vercel_response.py @@ -51,9 +51,7 @@ class VercelStreamResponse(StreamingResponse): event_response = event.to_response() yield self.convert_data(event_response) else: - yield self.convert_data( - {"type": "agent", "data": event.model_dump()} - ) + yield self.convert_data(event.model_dump()) except asyncio.CancelledError: logger.warning("Client cancelled the request!") diff --git a/templates/types/streaming/nextjs/package.json b/templates/types/streaming/nextjs/package.json index 48c43c12..355fd4df 100644 --- a/templates/types/streaming/nextjs/package.json +++ b/templates/types/streaming/nextjs/package.json @@ -17,7 +17,7 @@ "@radix-ui/react-select": "^2.1.1", "@radix-ui/react-slot": "^1.0.2", "@radix-ui/react-tabs": "^1.1.0", - "@llamaindex/chat-ui": "0.0.14", + "@llamaindex/chat-ui": "0.1.0", "ai": "^4.0.3", "ajv": "^8.12.0", "class-variance-authority": "^0.7.1", -- GitLab