From f6fb22a3b22d14ab44728ce2e9cb7e5d4d195b94 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 12 Jan 2024 10:59:57 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20tokenLimit=20of=20undefine?= =?UTF-8?q?d=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/commands/slash/edit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/commands/slash/edit.ts b/core/commands/slash/edit.ts index 6d9b403a7..17b66cf1b 100644 --- a/core/commands/slash/edit.ts +++ b/core/commands/slash/edit.ts @@ -226,7 +226,7 @@ const EditSlashCommand: SlashCommand = { fullFileContents, llm, input, - params.tokenLimit + params?.tokenLimit ); const [dedentedContents, commonWhitespace] = dedentAndGetCommonWhitespace(contents);