-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathconfig.js
More file actions
33 lines (33 loc) · 1.36 KB
/
config.js
File metadata and controls
33 lines (33 loc) · 1.36 KB
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
29
30
31
32
33
export default {
openAiKey: process.env.OPENAI_API_KEY,
baseURL: process.env.OPENAI_BASE_URL || null,
defaultHeaders: null,
defaultQuery: null,
autocommit: true,
openCommitTextEditor: false,
language: 'english',
projectInstruction: null,
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' +
'Current branch: {branch}\n' +
'{projectInstruction}\n' +
'{customInstruction}\n' +
'Git diff:\n' +
'{diff}',
excludeFromDiff: [
'*.lock', '*.lockb', '*-lock.json', '*-lock.yaml'
],
diffFilter: 'ACMRTUXB',
modelName: "gpt-4.1-mini",
completionPromptParams: {
maxTokens: 2000,
},
}