Skip to content

Commit 0b1a979

Browse files
authored
Git - switch commit message generation to gpt5-mini (#1249)
1 parent 5c1d517 commit 0b1a979

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

src/extension/prompt/node/gitCommitMessageGenerator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class GitCommitMessageGenerator {
3434
async generateGitCommitMessage(changes: Diff[], recentCommitMessages: RecentCommitMessages, attemptCount: number, token: CancellationToken): Promise<string | undefined> {
3535
const startTime = Date.now();
3636

37-
const endpoint = await this.endpointProvider.getChatEndpoint('gpt-4o-mini');
37+
const endpoint = await this.endpointProvider.getChatEndpoint('gpt-5-mini');
3838
const promptRenderer = PromptRenderer.create(this.instantiationService, endpoint, GitCommitMessagePrompt, { changes, recentCommitMessages });
3939
const prompt = await promptRenderer.render(undefined, undefined);
4040

src/extension/prompts/node/git/gitCommitMessagePrompt.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class GitCommitMessagePrompt extends PromptElement<GitCommitMessagePrompt
6161
</Tag>
6262
<Tag priority={900} name='reminder'>
6363
Now generate a commit messages that describe the CODE CHANGES.<br />
64-
DO NOT COPY commits from RECENT COMMITS, but it as reference for the commit style.<br />
64+
DO NOT COPY commits from RECENT COMMITS, but use it as reference for the commit style.<br />
6565
ONLY return a single markdown code block, NO OTHER PROSE!<br />
6666
<UnsafeCodeBlock languageId='text' code='commit message goes here' />
6767
</Tag>

src/platform/endpoint/common/endpointProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export function isCompletionModelInformation(model: IModelAPIResponse): model is
111111
return model.capabilities.type === 'completion';
112112
}
113113

114-
export type ChatEndpointFamily = 'gpt-4.1' | 'gpt-4o-mini' | 'copilot-base';
114+
export type ChatEndpointFamily = 'gpt-4.1' | 'gpt-4o-mini' | 'gpt-5-mini' | 'copilot-base';
115115
export type EmbeddingsEndpointFamily = 'text3small' | 'metis';
116116

117117
export interface IEndpointProvider {

test/outcome/git-commit-message-external.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
{
33
"name": "git commit message [external] [python] - Generated commit messages do not bias to conventional commit style",
44
"requests": [
5-
"c6adf4dd2a9c98ef740322034bc4d9350ba3a9e5c93fb229e9406647da29bcbd"
5+
"76e4cedef4871402e7a219abb86cf82d2f15e61066129b886247eec2624fa28f"
66
]
77
},
88
{
99
"name": "git commit message [external] [python] - Generates a conventional commit message for a bug fix",
1010
"requests": [
11-
"6acab5b22afbce9ed62b59ddc0abe8c929961e85dffdc185fd3f86e9531121a1"
11+
"6aaa56b823f7941301713472a5b64b6d4e2f5cb5b2b0109369f2af89fb41b46d"
1212
]
1313
},
1414
{
1515
"name": "git commit message [external] [python] - Generates a simple commit message",
1616
"requests": [
17-
"163e8669564ba6cd9b16415252ce1ea6286df60d340b645c35de50844a95c030"
17+
"10feebb5b1a8683f302c4ff663bf32abd018c8bc449d544f5f65ad28b0410d65"
1818
]
1919
}
2020
]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:1de7098ba3817dc717aa641087ae7af235cbcef3e7753c550f3080925ec19083
3+
size 36864

0 commit comments

Comments
 (0)