Skip to content

Commit 3154d2c

Browse files
Update Openai.js
1 parent 1e8a7f5 commit 3154d2c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/utils/openai.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async function generatePrompt() {
6767

6868
if (gitDiffContent.length > maxDiffSize) {
6969
console.log('Diff content is too large. Skipping OpenAI request.');
70-
return `✨ tweak: update ${firstFilePath}`;
70+
return `✨ tweak (${firstFilePath}): update ${firstFilePath}`;
7171
}
7272

7373
// use the prompt from the config file emoji and send to openai
@@ -88,7 +88,7 @@ async function generatePrompt() {
8888
});
8989

9090
if (await gitStatus() !== false) {
91-
return `${category.choices[0].message.content}: ${message.choices[0].message.content}`;
91+
return `${category.choices[0].message.content} (${firstFilePath}): ${message.choices[0].message.content}`;
9292
} else {
9393
return false;
9494
}

0 commit comments

Comments
 (0)