chatscope / chatscope/chat-ui-kit-react
Message input adds at the end of the message when a space is there
Open
question
- Dominant language
- JavaScript
- Stars
- 1.8k
- Forks
- 154
- PR merge metrics
- No merged PRs in 30d
Description
Check the data that the MessageInput is sending when a space is added at the end of the message..
```
function onSend(message) {
debugger;
setMessages(__spreadArray(__spreadArray([], messages, true), [
{
role: 'user',
content: message,
created_at: dayjs().utc().toISOString(),
},
], false));
setIsSending(true);
addMessage(message);
}
```
![Uploading Screenshot 2023-04-25 at 16.19.28.png…]()
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.