mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 09:20:15 +01:00
fix: new message should append to the exist one
This commit is contained in:
parent
6d51ec3e37
commit
be71140dd4
1 changed files with 2 additions and 0 deletions
|
|
@ -137,6 +137,7 @@ export default function TextChat({ messages }) {
|
||||||
dispatch(setText(''));
|
dispatch(setText(''));
|
||||||
|
|
||||||
const submission = {
|
const submission = {
|
||||||
|
convo,
|
||||||
isCustomModel,
|
isCustomModel,
|
||||||
message: {
|
message: {
|
||||||
sender: 'User',
|
sender: 'User',
|
||||||
|
|
@ -202,6 +203,7 @@ export default function TextChat({ messages }) {
|
||||||
|
|
||||||
const data = JSON.parse(e.data);
|
const data = JSON.parse(e.data);
|
||||||
let text = data.text || data.response;
|
let text = data.text || data.response;
|
||||||
|
console.log(data)
|
||||||
if (data.message) {
|
if (data.message) {
|
||||||
messageHandler(text, currentState);
|
messageHandler(text, currentState);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue