mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Expose "Allow fallback providers" for OpenRouter
This commit is contained in:
@ -187,6 +187,7 @@ const settings = {
|
||||
server_urls: {},
|
||||
custom_model: '',
|
||||
bypass_status_check: false,
|
||||
openrouter_allow_fallbacks: true,
|
||||
};
|
||||
|
||||
export let textgenerationwebui_banned_in_macros = [];
|
||||
@ -261,6 +262,7 @@ export const setting_names = [
|
||||
'logit_bias',
|
||||
'custom_model',
|
||||
'bypass_status_check',
|
||||
'openrouter_allow_fallbacks',
|
||||
];
|
||||
|
||||
const DYNATEMP_BLOCK = document.getElementById('dynatemp_block_ooba');
|
||||
@ -1172,6 +1174,7 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate,
|
||||
|
||||
if (settings.type === OPENROUTER) {
|
||||
params.provider = settings.openrouter_providers;
|
||||
params.allow_fallbacks = settings.openrouter_allow_fallbacks;
|
||||
}
|
||||
|
||||
if (settings.type === KOBOLDCPP) {
|
||||
|
Reference in New Issue
Block a user