Comments (5)
If you can engineer the prompt to phrase it imperatively, I'm open to accepting it.
from aicommits.
Seems like this was resolved, closing! Also, unfortunately GPT-3 can't keep prompts under a specific character count.
from aicommits.
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.
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.
It seems it already does that for the most part so that part of my idea is redundant
from aicommits.
Related Issues (20)
- Include Past commits HOT 1
- Prompt shouldn't include Character limit
- Generate Message Body
- aicommits hides the output of husky HOT 1
- Option to skip precommit checks HOT 1
- Error: Too many requests HOT 1
- Extract issue name from branch and append to commit message HOT 2
- Message sanitization should not always remove newlines
- Feature: Ollama integration HOT 6
- self-signed certificate in certificate chain
- Unable to Set OpenAI API Key HOT 4
- How to setting max tokens? HOT 2
- Timeout Error in aicommits v1.11.0 on Large File Commit HOT 1
- Customize generated commit message HOT 1
- Add support for custom OpenAI base url (LocalAI integration) HOT 4
- at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
- certificate is not yet valid
- Integrate with copilot-gpt4-service
- Prompt fine-tuning HOT 1
- More customizable commit message template, auto commit, support for other LLMs, and Perforce VCS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aicommits.