diff --git a/core/commands/slash/edit.ts b/core/commands/slash/edit.ts index b6ef08f83..2f305c729 100644 --- a/core/commands/slash/edit.ts +++ b/core/commands/slash/edit.ts @@ -50,11 +50,11 @@ export async function getPromptParts( let maxTokens = Math.floor(model.contextLength / 2); const TOKENS_TO_BE_CONSIDERED_LARGE_RANGE = tokenLimit || 1200; - if (model.countTokens(rif.contents) > TOKENS_TO_BE_CONSIDERED_LARGE_RANGE) { - throw new Error( - "\n\n**It looks like you've selected a large range to edit, which may take a while to complete. If you'd like to cancel, click the 'X' button above. If you highlight a more specific range, Continue will only edit within it.**" - ); - } + // if (model.countTokens(rif.contents) > TOKENS_TO_BE_CONSIDERED_LARGE_RANGE) { + // throw new Error( + // "\n\n**It looks like you've selected a large range to edit, which may take a while to complete. If you'd like to cancel, click the 'X' button above. If you highlight a more specific range, Continue will only edit within it.**" + // ); + // } const BUFFER_FOR_FUNCTIONS = 400; let totalTokens =