Skip to content

Commit

Permalink
fix: donechunk fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhravya committed Apr 1, 2024
1 parent f87534d commit dbf3011
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions apps/cf-ai-backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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();
}
Expand Down
18 changes: 9 additions & 9 deletions apps/extension/src/SideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
<path d="m3 3 3 9-3 9 19-9Z" />
Expand All @@ -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"
>
<rect width="18" height="18" x="3" y="3" rx="2" />
Expand Down Expand Up @@ -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"
>
<path d="M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4" />
Expand Down

0 comments on commit dbf3011

Please sign in to comment.