BuilderIO / ai-shell

A CLI that converts natural language to shell commands.
MIT License
4.04k stars 257 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