[GH-ISSUE #5584] Can please used huh forms for better ui? #50000

Closed
opened 2026-04-28 13:44:53 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @nikhil-swamix on GitHub (Jul 9, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/5584

https://github.com/charmbracelet/huh

after seeing this issue i understood the ollama cli needs an overhaul, for example if json response is generated by llm the form can dynamically update. im not sure how this would implement, but it will enable ollama to be used as agent out of box. or atleast not type ollama -h 100 times or memorize stuff.

let me know your perspective.

Originally created by @nikhil-swamix on GitHub (Jul 9, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/5584 https://github.com/charmbracelet/huh after [seeing this issue](https://github.com/miniscruff/changie/issues/611) i understood the ollama cli needs an overhaul, for example if json response is generated by llm the form can dynamically update. im not sure how this would implement, but it will enable ollama to be used as agent out of box. or atleast not type `ollama -h` 100 times or memorize stuff. let me know your perspective.
GiteaMirror added the feature request label 2026-04-28 13:44:53 -05:00
Author
Owner

@pdevine commented on GitHub (Jul 10, 2024):

Hey @nikhil-swamix , I have looked at Charm before and using a viewport for buffering output from the LLM. The problem is that the buffer has to redraw a lot of characters repeatedly and ends up with a "flickering" effect when it's updating which was really visually distracting.

Regardless, the CLI is really supposed to be "bare bones" to show developers how to properly use the API to write their own clients. I think it's pretty successful at doing that right now (particularly with line wrapping / multi-byte character support), so there aren't any plans currently to change away from that. I'm going to close the issue, but I do appreciate the comments though!

<!-- gh-comment-id:2221125362 --> @pdevine commented on GitHub (Jul 10, 2024): Hey @nikhil-swamix , I have looked at Charm before and using a viewport for buffering output from the LLM. The problem is that the buffer has to redraw a lot of characters repeatedly and ends up with a "flickering" effect when it's updating which was really visually distracting. Regardless, the CLI is really supposed to be "bare bones" to show developers how to properly use the API to write their own clients. I think it's pretty successful at doing that right now (particularly with line wrapping / multi-byte character support), so there aren't any plans currently to change away from that. I'm going to close the issue, but I do appreciate the comments though!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#50000