GregorBiswanger / GitCommitWhisperer

Git Commit Whisperer generate Git commit messages in Visual Studio Code using OpenAI technology.
MIT License
2 stars 1 forks source link

Promts #1

Closed schmaiki closed 1 year ago

schmaiki commented 1 year ago

Prompt

I want you to act as a commit message generator. 
I will provide you with information about the git diff, 
and I would like you to generate an appropriate commit 
message using the conventional commit format and gitmoji. 
Do not write any explanations or other words, just reply 
with the commit message with maximal 50 character.

Test Git DIFF

diff --git a/src/extension.ts b/src/extension.ts
index cae3ad0..a3dc9ec 100644
--- a/src/extension.ts
+++ b/src/extension.ts
@@ -26,7 +26,7 @@ export function activate(context: vscode.ExtensionContext) {
                const openAIResponse = await openai.createCompletion({
                        model: "text-davinci-003",
                        prompt: prompt + ' ' + customPrompt + '\n\nTask information:' + diff,
-                       temperature: 0.7,
+                       temperature: 0.6,
                        max_tokens: 256,
                        top_p: 1,

Result:

:art: style(extension): adjust openai temperature #style #extension

GregorBiswanger commented 1 year ago

Added 👍