From dbf3011cba630e51b44464465175c2541658619a Mon Sep 17 00:00:00 2001 From: Dhravya Date: Sun, 31 Mar 2024 23:50:07 -0700 Subject: [PATCH] fix: donechunk fix --- apps/cf-ai-backend/src/index.ts | 4 ++-- apps/extension/src/SideBar.tsx | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/apps/cf-ai-backend/src/index.ts b/apps/cf-ai-backend/src/index.ts index f4843601..429d5f9b 100644 --- a/apps/cf-ai-backend/src/index.ts +++ b/apps/cf-ai-backend/src/index.ts @@ -136,7 +136,7 @@ export default { const encodedChunk = converter.encode("data: " + JSON.stringify({ "response": chunkText }) + "\n\n"); controller.enqueue(encodedChunk); } - const doneChunk = converter.encode("data: [DONE]"); + const doneChunk = converter.encode("[DONE]"); controller.enqueue(doneChunk); controller.close(); } @@ -167,7 +167,7 @@ export default { const encodedChunk = converter.encode("data: " + JSON.stringify({ "response": chunkText }) + "\n\n"); controller.enqueue(encodedChunk); } - const doneChunk = converter.encode("data: [DONE]"); + const doneChunk = converter.encode("[DONE]"); controller.enqueue(doneChunk); controller.close(); } diff --git a/apps/extension/src/SideBar.tsx b/apps/extension/src/SideBar.tsx index 3dc3c911..babe0bc1 100644 --- a/apps/extension/src/SideBar.tsx +++ b/apps/extension/src/SideBar.tsx @@ -214,9 +214,9 @@ function SideBar({ jwt }: { jwt: string }) { viewBox="0 0 24 24" fill="none" stroke="currentColor" - stroke-width="2" - stroke-linecap="round" - stroke-linejoin="round" + strokeWidth="2" + strokeLinecap="round" + strokeLinejoin="round" className="lucide lucide-send-horizontal" > @@ -241,9 +241,9 @@ function SideBar({ jwt }: { jwt: string }) { viewBox="0 0 24 24" fill="none" stroke="currentColor" - stroke-width="2" - stroke-linecap="round" - stroke-linejoin="round" + strokeWidth="2" + strokeLinecap="round" + strokeLinejoin="round" className="lucide lucide-panel-right-open" > @@ -282,9 +282,9 @@ function SideBar({ jwt }: { jwt: string }) { viewBox="0 0 24 24" fill="none" stroke="currentColor" - stroke-width="2" - stroke-linecap="round" - stroke-linejoin="round" + strokeWidth="2" + strokeLinecap="round" + strokeLinejoin="round" className="lucide lucide-file-check-2" >