From 3007e55e97eb3f1992da27692ec2340d98a70c45 Mon Sep 17 00:00:00 2001 From: Matthew Salter Date: Wed, 22 Nov 2023 09:21:09 +0000 Subject: [PATCH] fix: ET-1441: fix typo in variable name, change OCO_TOKENS_MAX_INPUT to OCO_TOKENS_MAX_OUTPUT --- src/generateCommitMessageFromGitDiff.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generateCommitMessageFromGitDiff.ts b/src/generateCommitMessageFromGitDiff.ts index 9de247a9..8f79ad06 100644 --- a/src/generateCommitMessageFromGitDiff.ts +++ b/src/generateCommitMessageFromGitDiff.ts @@ -11,7 +11,7 @@ import { tokenCount } from './utils/tokenCount'; const config = getConfig(); const MAX_TOKENS_INPUT = config?.OCO_TOKENS_MAX_INPUT || 4096; -const MAX_TOKENS_OUTPUT = config?.OCO_TOKENS_MAX_INPUT || 500; +const MAX_TOKENS_OUTPUT = config?.OCO_TOKENS_MAX_OUTPUT || 500; const generateCommitMessageChatCompletionPrompt = async ( diff: string,