lint: Comma dangle

This commit is contained in:
Cohee
2023-12-02 22:06:57 +02:00
parent 08fedf3a96
commit 64a3564892
53 changed files with 388 additions and 384 deletions

View File

@ -354,7 +354,7 @@ export function countTokensOpenAI(messages, full = false) {
success: function (data) {
token_count += Number(data.token_count);
cacheObject[cacheKey] = Number(data.token_count);
}
},
});
}
}
@ -434,7 +434,7 @@ function countTokensRemote(endpoint, str, padding) {
sessionStorage.setItem(TOKENIZER_WARNING_KEY, String(true));
}
}
}
},
});
return tokenCount + padding;
@ -467,7 +467,7 @@ function getTextTokensRemote(endpoint, str, model = '') {
if (Array.isArray(data.chunks)) {
Object.defineProperty(ids, 'chunks', { value: data.chunks });
}
}
},
});
return ids;
}
@ -492,7 +492,7 @@ function decodeTextTokensRemote(endpoint, ids, model = '') {
contentType: 'application/json',
success: function (data) {
text = data.text;
}
},
});
return text;
}