opencommit icon indicating copy to clipboard operation
opencommit copied to clipboard

[Bug]: Setting `OCO_ONE_LINE_COMMIT=true` generates a multi-line message

Open redryerye opened this issue 1 year ago • 1 comments
trafficstars

Opencommit Version

1.0.2

Node Version

20.8.0

NPM Version

10.0.1

What OS are you seeing the problem on?

No response

What happened?

Setting OCO_ONE_LINE_COMMIT=true generates a multi-line message, making it not much different from setting OCO_ONE_LINE_COMMIT=false.

Expected Behavior

Generates single line message when OCO_ONE_LINE_COMMIT=true is set.

Current Behavior

Setting OCO_ONE_LINE_COMMIT=true generates a multi-line message.

Possible Solution

Iterate the prompt

Steps to Reproduce

No response

Relevant log output

No response

redryerye avatar Mar 18 '24 14:03 redryerye

I’m thinking of removing the few shots of example responses if gpt4 is used, it should be capable of writing the message without the few shots, this way other prompt instructions will be treated more strictly

di-sukharev avatar Mar 18 '24 15:03 di-sukharev

will be resolved here

di-sukharev avatar Sep 06 '24 11:09 di-sukharev