mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Added experimental features
This commit is contained in:
@@ -1097,7 +1097,7 @@ class system_settings(settings):
|
||||
random.seed()
|
||||
if os.path.exists('./KoboldAI-Horde/venv/scripts/python.exe'):
|
||||
self._horde_pid = subprocess.Popen(['./KoboldAI-Horde/venv/scripts/python.exe', './KoboldAI-Horde/bridge.py',
|
||||
'--kai_url', 'http://127.0.0.1:{}'.format(self.port), '--cluster_url', "http://koboldai.net"])
|
||||
'--kai_url', 'http://127.0.0.1:{}'.format(self.port), '--cluster_url', "http://koboldai.net", "--log_file"])
|
||||
else:
|
||||
self._horde_pid = subprocess.Popen(['./KoboldAI-Horde/venv/bin/python', './KoboldAI-Horde/bridge.py',
|
||||
'--kai_url', 'http://127.0.0.1:{}'.format(self.port), '--cluster_url', "http://koboldai.net"])
|
||||
|
@@ -2479,6 +2479,20 @@ function save_preset() {
|
||||
}
|
||||
|
||||
//--------------------------------------------General UI Functions------------------------------------
|
||||
function enable_experemental_features(checked) {
|
||||
if (checked) {
|
||||
setCookie("enable_experemental_features", "true");
|
||||
for (item of document.getElementsByClassName("experemental")) {
|
||||
item.classList.remove("hidden");
|
||||
}
|
||||
} else {
|
||||
setCookie("enable_experemental_features", "false");
|
||||
for (item of document.getElementsByClassName("experemental")) {
|
||||
item.classList.add("hidden");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function set_font_size(element) {
|
||||
new_font_size = element.value;
|
||||
var r = document.querySelector(':root');
|
||||
@@ -4427,6 +4441,7 @@ function process_cookies() {
|
||||
} else if (getCookie("options_on_right") == "true") {
|
||||
options_on_right(true);
|
||||
}
|
||||
enable_experemental_features((getCookie("enable_experemental_features", "false") == "true"));
|
||||
|
||||
Change_Theme(getCookie("theme", "Monochrome"));
|
||||
|
||||
|
@@ -295,6 +295,17 @@
|
||||
<span class="setting_minlabel"><span style="position: relative;">0.1</span></span>
|
||||
<span class="setting_maxlabel"><span style="position: relative;">2</span></span>
|
||||
</div>
|
||||
<div class="setting_container">
|
||||
<span class="setting_label">
|
||||
<span>Experimental Features: </span><span class="helpicon material-icons-outlined" tooltip="When enabled experemental features will be shown in the UI.">help_icon</span>
|
||||
</span>
|
||||
<span class="setting_item">
|
||||
<input type=checkbox id="enable_experemental_features" data-size=mini data-onstyle=success data-toggle=toggle onchange="enable_experemental_features(this.checked)"/>
|
||||
</span>
|
||||
<!---Slider Labels--->
|
||||
<span class="setting_minlabel"><span style="top: -4px; position: relative;"></span></span>
|
||||
<span class="setting_maxlabel"><span style="top: -4px; position: relative;"></span></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="collapsable_header" onclick="toggle_setting_category(this);">
|
||||
<h4 style="width:var(--flyout_menu_width);"><span class="material-icons-outlined cursor">expand_more</span> Formatting</h4>
|
||||
|
@@ -13,7 +13,7 @@
|
||||
</div>
|
||||
<textarea rows=20 id="memory" class="var_sync_story_memory var_sync_alt_story_memory_length fullwidth" onchange='sync_to_server(this);' oninput="autoResize(this)" autocomplete="off"></textarea>
|
||||
</div>
|
||||
<div id="Auto-Memory">
|
||||
<div id="Auto-Memory" class="hidden experemental">
|
||||
<h4 class="section_header"><label for="auto_memory">Auto-Memory (non-functional)</label></h4>
|
||||
<div class="help_text">
|
||||
What the system would use for automatic memory summarized from the game
|
||||
|
Reference in New Issue
Block a user