Skip to content
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

--execute ignores prompt? #330

Closed
kumraa-1 opened this issue Mar 3, 2024 · 4 comments
Closed

--execute ignores prompt? #330

kumraa-1 opened this issue Mar 3, 2024 · 4 comments

Comments

@kumraa-1
Copy link

kumraa-1 commented Mar 3, 2024

It seems like --execute somehow overrides the prompt and doesn't read out OS-Data so it's not very helpful.

r@Nobara-Desktop:~/.config/aichat$ aichat --execute --role shell "update system"
sudo apt-get update && sudo apt-get upgrade -y
> [e]xecute, [d]escribe, [a]bort:  a

r@Nobara-Desktop:~/.config/aichat$ aichat --role shell --execute "update system"
sudo apt update && sudo apt upgrade -y
> [e]xecute, [d]escribe, [a]bort:  a

r@Nobara-Desktop:~/.config/aichat$ aichat --role shell "update system"
sudo dnf update --refresh

The role shell is basically your default config with a line added to be specific on Fedora 39.

@sigoden
Copy link
Owner

sigoden commented Mar 3, 2024

This is expected behavior.

The --execute has a builtin role __execute__. The builtin role is aware OS and SHELL.

Run following command to inspect the builtin role.

aichat --execute --info

@kumraa-1

@kumraa-1
Copy link
Author

kumraa-1 commented Mar 3, 2024

Ah I see, the model doesn't seem to know nobara. Thanks for the quick help! Is there a way to override the execute role?

@sigoden
Copy link
Owner

sigoden commented Mar 3, 2024

I will make the override of the built-in role available.

@kumraa-1 kumraa-1 closed this as completed Mar 3, 2024
@sigoden
Copy link
Owner

sigoden commented Mar 3, 2024

#331 solved the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants