mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge pull request #2312 from NijikaMyWaifu/gpt4o-tokenizer-for-gemini
Use GPT-4o tokenizer for Gemini
This commit is contained in:
@@ -308,6 +308,10 @@ function getTokenizerModel(requestModel) {
|
||||
return 'yi';
|
||||
}
|
||||
|
||||
if (requestModel.includes('gemini')) {
|
||||
return 'gpt-4o';
|
||||
}
|
||||
|
||||
// default
|
||||
return 'gpt-3.5-turbo';
|
||||
}
|
||||
|
Reference in New Issue
Block a user