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

No Input Box Validation, User can press send even if its an empty space. #23

Open
MrPurushotam opened this issue May 8, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@MrPurushotam
Copy link

image

Also we can add a disable state which will be true untill model replies with answer. And for mean time we can keep both input box and button disabled.

@abi
Copy link
Owner

abi commented May 8, 2024

There's a PR out for this: #21

@abi abi added the bug Something isn't working label May 8, 2024
@MrPurushotam
Copy link
Author

MrPurushotam commented May 8, 2024

@abi yes there is a pr but that doesn't work,because !userInput would return false if it has black space " " also it doesn't prevent user form hitting enter button when there is already one prompt given and model is in the mid of responding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants