BuilderIO / ai-shell

A CLI that converts natural language to shell commands.
MIT License
4.22k stars 278 forks source link

Empty script returned #21

Closed snilan closed 1 year ago

snilan commented 1 year ago

Sometimes OpenAI will return an empty script, especially if you feed it gibberish. If an empty script is returned, I don't think there should be an option to run it.

Ai Shell Pre@2x

My fix just removes the option to run it, instead prompting to revise.

Ai-shell-revision@2x