This commit is contained in:
Skylar Grant 2025-01-04 11:00:39 -05:00
parent 4f7e00648e
commit 06d954f106

View File

@ -35,7 +35,7 @@ async function readResponse(response) {
console.log(`Done: ${JSON.stringify(chunk.done)}`);
console.log(`Value: ${new TextDecoder().decode(chunk.value)}`);
if (chunk.value) {
const text = decoder.decode(chunk.value, { stream: true });
const text = decoder.decode(chunk.value);
finishedResponse += text;
}
if (chunk.done) {