🔥 remove token limitation on /edit
This commit is contained in:
parent
baba9ad45e
commit
8fa1eab4a6
1 changed files with 5 additions and 5 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue