Skip to content

Enhance user input handling for llama-run#11138

Merged
ericcurtin merged 1 commit intoggml-org:masterfrom
ericcurtin:run-ctrl-d
Jan 8, 2025
Merged

Enhance user input handling for llama-run#11138
ericcurtin merged 1 commit intoggml-org:masterfrom
ericcurtin:run-ctrl-d

Conversation

@ericcurtin
Copy link
Collaborator

@ericcurtin ericcurtin commented Jan 8, 2025

The main motivation for this change is it was not handing
ctrl-c/ctrl-d correctly. Modify read_user_input to handle EOF,
"/bye" command, and empty input cases. Introduce get_user_input
function to manage user input loop and handle different return
cases.

@ericcurtin ericcurtin force-pushed the run-ctrl-d branch 2 times, most recently from f30e0fa to 077b05e Compare January 8, 2025 15:30
The main motivation for this change is it was not handing
ctrl-c/ctrl-d correctly. Modify `read_user_input` to handle EOF,
"/bye" command, and empty input cases. Introduce `get_user_input`
function to manage user input loop and handle different return
cases.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
@ericcurtin ericcurtin merged commit 1bf839b into ggml-org:master Jan 8, 2025
@ericcurtin ericcurtin deleted the run-ctrl-d branch January 8, 2025 18:47
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Feb 26, 2025
The main motivation for this change is it was not handing
ctrl-c/ctrl-d correctly. Modify `read_user_input` to handle EOF,
"/bye" command, and empty input cases. Introduce `get_user_input`
function to manage user input loop and handle different return
cases.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants