mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge pull request #3590 from SillyTavern/update-libs
Update third-party dependencies
This commit is contained in:
@@ -398,15 +398,11 @@ function getWebTokenizersChunks(tokenizer, ids) {
|
||||
* @returns {string} Tokenizer model to use
|
||||
*/
|
||||
export function getTokenizerModel(requestModel) {
|
||||
if (requestModel.includes('o1-preview') || requestModel.includes('o1-mini') || requestModel.includes('o3-mini')) {
|
||||
return 'gpt-4o';
|
||||
if (requestModel === 'o1' || requestModel.includes('o1-preview') || requestModel.includes('o1-mini') || requestModel.includes('o3-mini')) {
|
||||
return 'o1';
|
||||
}
|
||||
|
||||
if (requestModel.includes('gpt-4o')) {
|
||||
return 'gpt-4o';
|
||||
}
|
||||
|
||||
if (requestModel.includes('chatgpt-4o-latest')) {
|
||||
if (requestModel.includes('gpt-4o') || requestModel.includes('chatgpt-4o-latest')) {
|
||||
return 'gpt-4o';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user