From 42fa3c79d70d069f483ba8b06d3cc31efbe09b55 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 8 Sep 2024 22:23:25 +0300 Subject: [PATCH 1/5] Add Tabby model selection --- public/css/select2-overrides.css | 7 +++++- public/index.html | 17 ++++++++++--- public/script.js | 5 +++- public/scripts/preset-manager.js | 1 + public/scripts/slash-commands.js | 1 + public/scripts/textgen-models.js | 39 ++++++++++++++++++++++++++++++ public/scripts/textgen-settings.js | 6 +++++ 7 files changed, 71 insertions(+), 5 deletions(-) diff --git a/public/css/select2-overrides.css b/public/css/select2-overrides.css index 01577846e..47d9746ac 100644 --- a/public/css/select2-overrides.css +++ b/public/css/select2-overrides.css @@ -15,8 +15,13 @@ z-index: 40000; } -.select2-selection__clear { +.select2-container .select2-selection .select2-selection__clear { color: var(--SmartThemeBodyColor); + font-size: 24px; + padding: 0; + position: absolute; + right: 5px; + top: 0; } .select2-container .select2-search__field { diff --git a/public/index.html b/public/index.html index c949839d8..9696b4200 100644 --- a/public/index.html +++ b/public/index.html @@ -2335,8 +2335,7 @@

- Ollama Model -

+ Ollama Model + + + + +   + inline_model_loading: true + + must be set in Tabby's config.yml to switch models. + +