Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message input adds   at the end of the message when a space is there #100

Open
jimmykane opened this issue Apr 25, 2023 · 1 comment
Labels
question Further information is requested

Comments

@jimmykane
Copy link

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…]()
@jimmykane jimmykane changed the title Message input adds &nbps; at the end of the message when a space is there Message input adds   at the end of the message when a space is there Apr 25, 2023
@supersnager
Copy link
Contributor

@jimmykane Please check this issue for an explanation: #91

@supersnager supersnager added the question Further information is requested label Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants