Giter Club home page Giter Club logo

Comments (5)

privatenumber avatar privatenumber commented on July 25, 2024 1

If you can engineer the prompt to phrase it imperatively, I'm open to accepting it.

from aicommits.

Nutlope avatar Nutlope commented on July 25, 2024 1

Seems like this was resolved, closing! Also, unfortunately GPT-3 can't keep prompts under a specific character count.

from aicommits.

privatenumber avatar privatenumber commented on July 25, 2024

Not sure what you mean by imperative mood.

The 72 commit message title character limit makes sense. I'm having difficulty engineering a GPT prompt that respects it.

Example prompt:

Write an insightful but concise Git commit message for the following diff in present tense, without prefacing it with anything, in under 72 characters:

diff --git a/package.json b/package.json
index 2a90a5a..297f01d 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,8 @@
 	"keywords": [
 		"ai",
 		"git",
-		"commit"
+		"commit",
+		"keyword"
 	],
 	"license": "MIT",
 	"repository": "https://github.com/Nutlope/aicommits",
@@ -33,8 +34,7 @@
 		"@types/inquirer": "^9.0.3",
 		"@types/node": "^18.13.0",
 		"eslint": "^8.34.0",
-		"pkgroll": "^1.9.0",
-		"typescript": "^4.9.5"
+		"pkgroll": "^1.9.0"
 	},
 	"eslintConfig": {
 		"extends": "@pvtnbr"

Response: 87 characters

Add "keyword" to project keywords and remove "typescript" dependency from package.json.

from aicommits.

marcusziade avatar marcusziade commented on July 25, 2024

@privatenumber

Commits should be in the format where you can say:

If I apply this commit, it will commit message

Examples:

Add x
Modify x
Add 72 character limit to generator

All git commands are in the imperative mood, and so should all commits. Commits are git commands when used.

Thankfully the AI seems to know about this already.

from aicommits.

marcusziade avatar marcusziade commented on July 25, 2024

It seems it already does that for the most part so that part of my idea is redundant

from aicommits.

Related Issues (20)

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.