lint: format fix

This commit is contained in:
Cohee 2023-12-14 20:57:43 +02:00
parent bb8b8f9386
commit 2045e414d1
1 changed files with 2 additions and 2 deletions

View File

@ -376,7 +376,7 @@ export function getTokenizerModel() {
}
}
if(oai_settings.chat_completion_source == chat_completion_sources.MAKERSUITE) {
if (oai_settings.chat_completion_source == chat_completion_sources.MAKERSUITE) {
return oai_settings.google_model;
}
@ -395,7 +395,7 @@ export function countTokensOpenAI(messages, full = false) {
const shouldTokenizeAI21 = oai_settings.chat_completion_source === chat_completion_sources.AI21 && oai_settings.use_ai21_tokenizer;
const shouldTokenizeGoogle = oai_settings.chat_completion_source === chat_completion_sources.MAKERSUITE && oai_settings.use_google_tokenizer;
let tokenizerEndpoint = '';
if(shouldTokenizeAI21) {
if (shouldTokenizeAI21) {
tokenizerEndpoint = '/api/tokenizers/ai21/count';
} else if (shouldTokenizeGoogle) {
tokenizerEndpoint = `/api/tokenizers/google/count?model=${getTokenizerModel()}`;