forked from shanginn/git-aicommit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
28 lines (28 loc) · 1.31 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
export default {
openAiKey: process.env.OPENAI_API_KEY,
azureOpenAiKey: process.env.AZURE_OPENAI_API_KEY,
azureOpenAiInstanceName: process.env.AZURE_OPENAI_API_INSTANCE_NAME,
azureOpenAiDeploymentName: process.env.AZURE_OPENAI_API_DEPLOYMENT_NAME,
azureOpenAiVersion: process.env.AZURE_OPENAI_API_VERSION,
autocommit: true,
openCommitTextEditor: false,
language: 'english',
systemMessagePromptTemplate: '' +
'You are expert AI, your job is to write clear and concise Git commit messages.' +
'Your responsibility is to ensure that these messages accurately describe the changes made in each commit,' +
'follow established guidelines. Provide a clear history of changes to the codebase.' +
'Write 1-2 sentences. Output only the commit message without comments or other text.',
humanPromptTemplate: '' +
'Read the following git diff for a multiple files and ' +
'write 1-2 sentences commit message in {language}' +
'without mentioning lines or files.' +
'Explain why these changes were made (summarize the reasoning):\n' +
'{diff}',
excludeFromDiff: [
'*.lock', '*.lockb', '*-lock.json', '*-lock.yaml'
],
diffFilter: 'ACMRTUXB',
modelName: "gpt-3.5-turbo-16k",
temperature: 0.0,
maxTokens: 2000,
}