(diff, fullGitMojiSpec, context)
| 85415 | mergedArr.push(currentItem); |
| 85416 | return mergedArr; |
| 85417 | } |
| 85418 | |
| 85419 | // src/generateCommitMessageFromGitDiff.ts |
| 85420 | var config5 = getConfig(); |
| 85421 | var MAX_TOKENS_INPUT = config5.OCO_TOKENS_MAX_INPUT; |
| 85422 | var MAX_TOKENS_OUTPUT = config5.OCO_TOKENS_MAX_OUTPUT; |
| 85423 | var generateCommitMessageChatCompletionPrompt = async (diff, fullGitMojiSpec, context) => { |
| 85424 | const INIT_MESSAGES_PROMPT = await getMainCommitPrompt( |
| 85425 | fullGitMojiSpec, |
| 85426 | context |
| 85427 | ); |
| 85428 | const chatContextAsCompletionRequest = [...INIT_MESSAGES_PROMPT]; |
| 85429 | chatContextAsCompletionRequest.push({ |
| 85430 | role: "user", |
| 85431 | content: diff |
no test coverage detected
searching dependent graphs…