mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Added additional headers
This commit is contained in:
@@ -360,6 +360,7 @@ function RA_autoconnect(PrevApi) {
|
||||
|| (textgen_settings.type === textgen_types.INFERMATICAI && secret_state[SECRET_KEYS.INFERMATICAI])
|
||||
|| (textgen_settings.type === textgen_types.DREAMGEN && secret_state[SECRET_KEYS.DREAMGEN])
|
||||
|| (textgen_settings.type === textgen_types.OPENROUTER && secret_state[SECRET_KEYS.OPENROUTER])
|
||||
|| (textgen_settings.type === textgen_types.FEATHERLESS && secret_state[SECRET_KEYS.FEATHERLESS])
|
||||
) {
|
||||
$('#api_button_textgenerationwebui').trigger('click');
|
||||
}
|
||||
|
@@ -322,6 +322,7 @@ class PresetManager {
|
||||
'infermaticai_model',
|
||||
'dreamgen_model',
|
||||
'openrouter_model',
|
||||
'featherless_model',
|
||||
'max_tokens_second',
|
||||
'openrouter_providers',
|
||||
];
|
||||
|
@@ -57,6 +57,7 @@ const INPUT_MAP = {
|
||||
[SECRET_KEYS.COHERE]: '#api_key_cohere',
|
||||
[SECRET_KEYS.PERPLEXITY]: '#api_key_perplexity',
|
||||
[SECRET_KEYS.GROQ]: '#api_key_groq',
|
||||
[SECRET_KEYS.FEATHERLESS]: '#api_key_featherless',
|
||||
};
|
||||
|
||||
async function clearSecret() {
|
||||
|
@@ -1013,6 +1013,8 @@ export function getTextGenModel() {
|
||||
throw new Error('No Ollama model selected');
|
||||
}
|
||||
return settings.ollama_model;
|
||||
case FEATHERLESS:
|
||||
return settings.featherless_model;
|
||||
default:
|
||||
return undefined;
|
||||
}
|
||||
|
Reference in New Issue
Block a user