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);