mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Replaces is_[api] params with api_type param
These were 5 mutually-exclusive booleans, which can be replaced with one param that takes on 5 values, one for each API type.
This commit is contained in:
@ -392,11 +392,10 @@ function getTokenCacheObject() {
|
||||
function getRemoteTokenizationParams(str) {
|
||||
return {
|
||||
text: str,
|
||||
api: main_api,
|
||||
main_api,
|
||||
api_type: textgenerationwebui_settings.type,
|
||||
url: getAPIServerUrl(),
|
||||
legacy_api: main_api === 'textgenerationwebui' && textgenerationwebui_settings.legacy_api && !isMancer(),
|
||||
use_tabby: main_api === 'textgenerationwebui' && isTabby(),
|
||||
use_koboldcpp: main_api === 'textgenerationwebui' && isKoboldCpp(),
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user