-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathconfig.js
28 lines (28 loc) · 1.34 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 software developer, 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.' +
'If the reason behind the changed can be deducted from the changed, provide this reason:\n' +
'{diff}',
excludeFromDiff: [
'*.lock', '*.lockb', '*-lock.json', '*-lock.yaml'
],
diffFilter: 'ACMRTUXB',
modelName: "gpt-4o-mini",
temperature: 0.0,
maxTokens: 2000,
}