mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 17:30:16 +01:00
animates scroll to bottom and debounces bottom
This commit is contained in:
parent
779f142058
commit
a5afd5c48f
9 changed files with 130 additions and 31 deletions
|
|
@ -29,7 +29,7 @@ export default function TextChat({ messages }) {
|
|||
}
|
||||
dispatch(setSubmitState(true));
|
||||
const payload = text.trim();
|
||||
const currentMsg = { sender: 'user', text: payload, current: true };
|
||||
const currentMsg = { sender: 'User', text: payload, current: true };
|
||||
const initialResponse = { sender: 'GPT', text: '' };
|
||||
dispatch(setMessages([...messages, currentMsg, initialResponse]));
|
||||
dispatch(setText(''));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue