Added new chat page and fixed JSON error
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user