]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
Enhance user input handling for llama-run (#11138)
authorEric Curtin <redacted>
Wed, 8 Jan 2025 18:47:05 +0000 (18:47 +0000)
committerGitHub <redacted>
Wed, 8 Jan 2025 18:47:05 +0000 (18:47 +0000)
commit1bf839b1e8b9d043306c65eddd9021fe4337733e
tree737c89b37f46b984e44b2ca844cd6ffa1d4cb17f
parentf7cd13301c2a88f97073fd119072b4cc92c08df1
Enhance user input handling for llama-run (#11138)

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 <redacted>
examples/run/run.cpp