mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00: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(''));
|
||||
|
||||
const submission = {
|
||||
convo,
|
||||
isCustomModel,
|
||||
message: {
|
||||
sender: 'User',
|
||||
|
|
@ -202,6 +203,7 @@ export default function TextChat({ messages }) {
|
|||
|
||||
const data = JSON.parse(e.data);
|
||||
let text = data.text || data.response;
|
||||
console.log(data)
|
||||
if (data.message) {
|
||||
messageHandler(text, currentState);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue