-
Notifications
You must be signed in to change notification settings - Fork 124
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
Remove emoji usage until linenoise.cpp and llama-run are compatible #884
Conversation
Reviewer's Guide by SourceryThis pull request refactors the Updated class diagram for Model classclassDiagram
class Model {
+setup_container(args)
+gpu_args(args, runner=False)
+build_exec_args_run(args, model_path, prompt)
+get_container_name(args)
+get_base_conman_args(args, name)
+add_privileged_options(conman_args, args)
+add_container_labels(conman_args, args)
+add_subcommand_env(conman_args, args)
+handle_podman_specifics(conman_args, args)
+handle_docker_pull(conman_args, args)
+add_tty_option(conman_args)
+add_detach_option(conman_args, args)
+add_port_option(conman_args, args)
+add_device_options(conman_args, args)
+add_network_option(conman_args, args)
}
Model : +get_container_name
Model : +get_base_conman_args
Model : +add_privileged_options
Model : +add_container_labels
Model : +add_subcommand_env
Model : +handle_podman_specifics
Model : +handle_docker_pull
Model : +add_tty_option
Model : +add_detach_option
Model : +add_port_option
Model : +add_device_options
Model : +add_network_option
note for Model "setup_container function refactored into smaller functions"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ericcurtin - I've reviewed your changes - here's some feedback:
Overall Comments:
- The proliferation of small functions makes the code harder to follow; consider grouping related operations into larger functions.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟡 Complexity: 1 issue found
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
3a2f2c2
to
fbfa766
Compare
Less eyecandy, but at least this works, backspaces for example were broken. Also split function into multiple functions, it was getting meaty. Signed-off-by: Eric Curtin <ecurtin@redhat.com>
fbfa766
to
8eb9cf2
Compare
LGTM |
Less eyecandy, but at least this works, backspaces for example were broken. Also split function into multiple functions, it was getting meaty.
Summary by Sourcery
This pull request removes emoji usage and refactors the
setup_container
function to address compatibility issues with linenoise.cpp and llama-run, specifically resolving broken backspace functionality. The prompt prefix is changed to a non-emoji character, and thesetup_container
function is split into smaller functions for better code organization.Bug Fixes:
Enhancements:
setup_container
function into smaller, more manageable functions to improve code readability and maintainability.Chores: