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

Sending a message with a single whitespace throws an error #1117

Closed
nsarrazin opened this issue May 7, 2024 · 0 comments · Fixed by #1122
Closed

Sending a message with a single whitespace throws an error #1117

nsarrazin opened this issue May 7, 2024 · 0 comments · Fixed by #1122
Labels
bug Something isn't working front This issue is related to the front-end of the app.

Comments

@nsarrazin
Copy link
Collaborator

If you try to send a message with a single whitespace the UI will let you do it and it will result in an error. This is because we trim the message in the backend but do a simple length > 0 check in the front-end.

We should probably not trim user messages in the backend, since if users want to experiment with some tokenization related things we should probably not manipulate the user input in any way.

@nsarrazin nsarrazin added bug Something isn't working front This issue is related to the front-end of the app. labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working front This issue is related to the front-end of the app.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant