abi / secret-llama

Fully private LLM chatbot that runs entirely with a browser with no server needed. Supports Mistral and LLama 3.
https://secretllama.com
Apache License 2.0
2.44k stars 143 forks source link

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

Open MrPurushotam opened 4 months ago

MrPurushotam commented 4 months ago

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 commented 4 months ago

There's a PR out for this: #21

MrPurushotam commented 4 months ago

@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.