Giter Site home page Giter Site logo

Comments (3)

mefengl avatar mefengl commented on May 22, 2024 1

This problem may be reduced a lot by setting the conventional commit option on:
image

And I may also explore some better ways to prompt

from vscode-i-dont-care-about-commit-message.

mefengl avatar mefengl commented on May 22, 2024 1

Yep, you know what? I tried a similar solution, but not with the length; I auto-reply it with commitlint error msg, and it doesn't work well, at least for gpt-3.5.

This is quite a heavy solution for now, cause there is no very good framework for this.

Adding one more follow-up prompt "shorter" should also be enough, but just like you said "this will result in longer response times and more token consumption", it may not be worth it.

So I may add the keyword "concise" to the prompt. After all, "I Don't Care About Commit Message" :)

from vscode-i-dont-care-about-commit-message.

lainbo avatar lainbo commented on May 22, 2024

This problem may be reduced a lot by setting the conventional commit option on: image

And I may also explore some better ways to prompt

Thank you, I will give it a try. Regarding this issue, I have come up with a not-so-good solution. It involves setting a word limit in the prompt for GPT and checking the word count after receiving the response. If it exceeds the set limit, another request will be sent to make the GPT response more concise, until it meets the word requirement. Of course, this will result in longer response times and more token consumption. I hope there is a better solution

from vscode-i-dont-care-about-commit-message.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.