24 Commits

Author SHA1 Message Date
my-alt 7f98e3e213 Add model selection support for llama.cpp router mode (#4910)
* Add model selection support for llama.cpp router mode

- Add llamacpp_model setting to textgen-settings.js
- Implement loadLlamaCppModels() function to fetch and populate models
- Add onLlamaCppModelSelect() handler for model selection
- Update status check to load llama.cpp models when connecting
- Update getTextGenModel() to return selected llama.cpp model
- Add model dropdown to HTML UI in llama.cpp section
- Initialize event handlers and Select2 for better UX
- Add llamacpp_model to preset manager for save/load support
- Add llamacpp_model to slash commands support

This implements model selection for llama.cpp router mode, allowing
users to select from multiple models without restarting the server.
Follows the same pattern as Ollama, Tabby, and vLLM implementations.

* Correct spelling

* Fix clear selection position

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-12-21 22:51:44 +02:00
Cohee 13ed0d3ad9 Add height limit to global WI picker
Closes #4278
2025-07-17 21:47:59 +03:00
Cohee b618f7e4ce select2: Replace line-height with vertical padding 2025-06-26 20:50:44 +03:00
Cohee 1ad7662f10 select2: adjust single selection placeholder override 2025-06-26 20:31:30 +03:00
qvink b3bc065713 Select2 visual bug fix (#4207)
* attempt at fixing select2 spacing issue across browsers

* found the actual problem

* fixing placeholder text

* fixing placeholder text again

* removing references to the select2_multi_sameline

---------

Co-authored-by: qvink <qvink@users.noreply.github.com>
2025-06-26 20:24:21 +03:00
Cohee 9bcbe957af Refactor transition durations to use CSS variables 2025-06-07 16:40:30 +03:00
Cohee e44b123330 Add no select style to select2-dropdown
Fixes #3745
2025-03-23 14:49:20 +02:00
Cohee 71e1fc91f1 select2: Add disabled option styling 2025-02-02 23:30:11 +02:00
Cohee f82a479a90 Fix select2 buttons alignment 2024-10-06 23:18:41 +03:00
Cohee 42fa3c79d7 Add Tabby model selection 2024-09-08 22:23:25 +03:00
Cohee 08a0b1e828 Merge branch 'staging' into smol-tag-improvements 2024-06-17 21:52:36 +03:00
Cohee 065d453477 Use main font variable where possible 2024-06-17 00:25:08 +03:00
Cohee e3a46df010 Merge branch 'staging' into smol-tag-improvements 2024-06-16 16:04:37 +03:00
RossAscends 4c81215a60 fix theme-disrespecting text colorizing 2024-06-14 21:50:54 +09:00
Wolfsblvt 10da7eb474 Comment interactable selectors & more small fixes 2024-06-08 21:15:37 +02:00
Cohee 2e23e78937 Update WI top block layout 2024-06-01 02:05:42 +03:00
Cohee b7a91770dc Set line height for select2 search textarea
Prevent height from jumping around when input is focused
2024-05-16 00:28:35 +03:00
Wolfsblvt bb3ac095c4 WI key input allow click to edit
- Allow click on WI keys to edit
- Removes them from the key list, allowing direct text editing
- Refactor select2 click subscribe some more, fixing a few issues
2024-05-10 00:42:35 +02:00
Wolfsblvt fda0e886e4 WI custom styling for regex keys
- WI custom style for regex keys
- moved select2 styling to its own file
2024-05-07 05:44:18 +02:00
Cohee 747a7824c0 OpenRouter model dropdown facelift 2024-01-11 20:27:59 +02:00
Cohee 18445f527b Fix select2 empty message background + correct before selector 2023-12-22 02:22:09 +02:00
RossAscends 124658a006 Add Border Color Control 2023-09-16 15:42:26 +09:00
Cohee 0480acebcd #1059 Mancer model selector 2023-09-10 04:08:32 +03:00
RossAscends 334dcc7454 WIP splitting of style.css 5.6k --> 3.5k lines 2023-08-20 15:49:27 +09:00