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