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

Add support to run commands that are written by ai in the chat. #281

Open
Autonvilkku opened this issue Jul 30, 2024 · 2 comments
Open

Add support to run commands that are written by ai in the chat. #281

Autonvilkku opened this issue Jul 30, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Autonvilkku
Copy link

feature:

  • Specially in multiline mode tgpt would ask if the user does he want to run the command if the ai has written an command.

usecases

  • In multiline mode this would help a lot, becouse the user doesn't have to exit the conversation.
  • Also in the normal mode this would help, so the user doesn't have to copy and paste it, tgpt would just ask if the user wants to execute that command.

example how it would work

user: write a command that make a folder and its name is "folder1"
bot: mkdir folder1
tget: do you want to execute that command(Y,n):
@ekkinox
Copy link

ekkinox commented Aug 1, 2024

Tgpt is a great project!

But indeed it doesn't offer the possibility to execute generated commands.

You can check Yai for this, but it's only working with Open AI for the moment (I have no time right now to make it evolve).

If it is a direction @aandrew-me wants to take for tgpt, maybe we should make it able to run commands reusing what was done in Yai ?

Yai: https://github.com/ekkinox/yai

@aandrew-me
Copy link
Owner

I will take a look

@aandrew-me aandrew-me added the enhancement New feature or request label Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants