aicommits icon indicating copy to clipboard operation
aicommits copied to clipboard

Add retry option

Open AllanOricil opened this issue 1 year ago • 4 comments

Feature request

Create many options at once and let us pick one

Why?

Answering just "No" does not mean that I dont' want to try again. What if you add a retry|next option for this use case? The retry should consider previous messages so that the AI is aware that we did not like any of the previous ones.

For example, I had to ran it twice to get something that was truly describing what my changes were. image

Alternatives

run the command multiple times

Additional context

No

AllanOricil avatar May 08 '23 18:05 AllanOricil

It would be much more pleasant seeing N possible options with a single run. If I have to run it N times until I find the one that best describes the changes, I prefer to write it myself. This could also reduce the number of repetitive outcomes it generates. Besides that, when retrying, pass the older set of message so that the AI is aware that we did not like any of the previous messages. The retry buton could be called next or just retry

AllanOricil avatar May 08 '23 21:05 AllanOricil

FYI there's generate: https://github.com/Nutlope/aicommits#generate-multiple-recommendations

I'm open to accepting a "Retry" option

privatenumber avatar May 09 '23 04:05 privatenumber

@privatenumber @Nutlope is this ready to be picked up? I would love to contribute.

Sakethtadimeti avatar Jun 03 '23 06:06 Sakethtadimeti

Sure, go ahead! Thanks

privatenumber avatar Jun 03 '23 06:06 privatenumber