fix: donechunk fix

This commit is contained in:
Dhravya 2024-03-31 23:50:07 -07:00
parent f87534d4a7
commit dbf3011cba
2 changed files with 11 additions and 11 deletions

View file

@ -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();
}

View file

@ -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" />
@ -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" />
@ -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" />