#1627 Bypass status check and custom model for textgen type

This commit is contained in:
Cohee
2024-01-05 19:15:07 +02:00
parent 394e703d92
commit 5f93c30a96
4 changed files with 20 additions and 0 deletions

View File

@ -110,6 +110,8 @@ const settings = {
logit_bias: [],
n: 1,
server_urls: {},
custom_model: '',
bypass_status_check: false,
};
export let textgenerationwebui_banned_in_macros = [];
@ -163,6 +165,8 @@ const setting_names = [
'sampler_order',
'n',
'logit_bias',
'custom_model',
'bypass_status_check',
];
export function validateTextGenUrl() {
@ -665,6 +669,10 @@ function toIntArray(string) {
}
function getModel() {
if (settings.type === OOBA && settings.custom_model) {
return settings.custom_model;
}
if (settings.type === MANCER) {
return settings.mancer_model;
}