Skip to content

Commit d54eee2

Browse files
committed
Tweaks variable name
1 parent d340d07 commit d54eee2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ai/aiProviderService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,8 +767,8 @@ async function getModelAndConfirmAIProviderToS(
767767
}
768768

769769
export function getMaxCharacters(model: AIModel, outputLength: number, overrideInputTokens?: number): number {
770-
const tokensPerCharacter = 3.1;
771-
const max = (overrideInputTokens ?? model.maxTokens.input) * tokensPerCharacter - outputLength / tokensPerCharacter;
770+
const charactersPerToken = 3.1;
771+
const max = (overrideInputTokens ?? model.maxTokens.input) * charactersPerToken - outputLength / charactersPerToken;
772772
return Math.floor(max - max * 0.1);
773773
}
774774

0 commit comments

Comments
 (0)