aandrew-me / tgpt

AI Chatbots in terminal without needing API keys
GNU General Public License v3.0
2.04k stars 171 forks source link

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

Open Autonvilkku opened 3 months ago

Autonvilkku commented 3 months ago

feature:

usecases

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 commented 3 months ago

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 commented 3 months ago

I will take a look