diff --git a/public/script.js b/public/script.js
index a437e6423..fb16babd8 100644
--- a/public/script.js
+++ b/public/script.js
@@ -954,6 +954,11 @@ async function getStatusTextgen() {
return resultCheckStatus();
}
+ if (textgen_settings.type == OOBA && textgen_settings.bypass_status_check) {
+ online_status = 'Status check bypassed';
+ return resultCheckStatus();
+ }
+
try {
const response = await fetch(url, {
method: 'POST',
diff --git a/public/scripts/preset-manager.js b/public/scripts/preset-manager.js
index c16e8970e..e1a1717b2 100644
--- a/public/scripts/preset-manager.js
+++ b/public/scripts/preset-manager.js
@@ -311,6 +311,8 @@ class PresetManager {
'ollama_model',
'server_urls',
'type',
+ 'custom_model',
+ 'bypass_status_check',
];
const settings = Object.assign({}, getSettingsByApiId(this.apiId));
diff --git a/public/scripts/textgen-settings.js b/public/scripts/textgen-settings.js
index 021bb375a..4f2bc6076 100644
--- a/public/scripts/textgen-settings.js
+++ b/public/scripts/textgen-settings.js
@@ -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;
}