Added new chat page and fixed JSON error

This commit is contained in:
2025-09-28 09:24:15 +01:00
parent 1abb1b5106
commit b2e51be8e5
4 changed files with 938 additions and 8 deletions

View File

@@ -57,9 +57,8 @@
}
const chunk = decoder.decode(value, { stream: true });
const jsonString = chunk.substring(6);
const data = JSON.parse(jsonString);
outputArea.value = data["response"];
const responseString = chunk.substring(6);
outputArea.value = responseString;
}
} catch (error) {
console.error('An error has occurred:', error);