Commit Graph

87 Commits

Author SHA1 Message Date
Cohee 4d1619ba47 Chore: enable brace-style eslint check (#5159)
* eslint: enable brace-style check

* Fix jsdoc and color

* fix: correct CSS color syntax in CreateZenSliders function
2026-02-15 01:46:32 +02:00
cloak1505 300912237d Sync OpenRouter providers list (#5110) 2026-02-06 22:48:25 +02:00
Brioch 6c864e8bb2 feat(openrouter): add model quantizations setting (#5080)
* feat(openrouter): add model quantizations setting

* Remove bogus setting

* Simplify nullish coalescing assignment

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2026-01-30 23:51:22 +02:00
DeclineThyself 8372e7bf9d "gradually replacing property access with a dot operator" (#4965)
* "gradually replacing property access with a dot operator"
https://github.com/SillyTavern/SillyTavern/pull/4963#discussion_r2663003561

(?<=\w|\])\['([a-zA-Z]\w+)'\]
My regex found 593 matches across 47 files.
Also, two typos.

* Fixed chat[0].chat_metadata type error.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664275854

* Fixed `swipedElementsDiv[0]?.getAnimations().filter((a) => a.animationName` type error.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664274593

* Fixed config.MESSAGE_SANITIZE and config.MESSAGE_ALLOW_SYSTEM_UI type errors.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664266271

* Fixed group.date_last_chat type error.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664295652

* Reverted SlashCommandParser dot property access.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664310931

* LLM fixed canUseNegativeLookbehind.result; type error.
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664314288

* Reverted chat-completions.js bodyParams and headers dot property access.

https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664317848
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664320088
https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664324438

* Reverted openai.js data dot property access.

https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664326244

* Reverted tests/frontend/MacroEnvBuilder.e2e.js env.dynamicMacros dot property access.

https://github.com/SillyTavern/SillyTavern/pull/4965#discussion_r2664330990

* Partially reverted `window` dot property access.

* Reverted result.json() and settings dot property access.

* Reverted google.js headers dot property access.

* Fixed regex: `(?<=\w|\])\['([a-zA-Z]\w*)'\]`

* Swapped window to globalThis with dot property access.

* LLM fixed canUseNegativeLookbehind type.

* Refactor property access

* Consistency

---------

Co-authored-by: user <user@exmaple.com>
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2026-01-08 23:58:21 +02:00
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
cloak1505 cd4f37f39b Sync OpenRouter providers list (#4846)
Python script to output a .txt containing a formatted list: https://gist.github.com/cloak1505/90a96bca28b332492221691268b674fd
2025-11-30 19:06:45 +02:00
Cohee f3ec2483ac Sync OpenRouter providers 2025-10-28 20:14:18 +02:00
DreamGenX 4e428c938d update dreamgen presets (#4683)
* update dreamgen presets

* remove dreamgen presets

* remove dreamgen presets
2025-10-23 21:07:08 +03:00
cloak1505 8656dd3a7a Sync OpenRouter providers list (#4509) 2025-09-10 17:30:16 +03:00
cloak1505 deb07bd6cb Add a comment regarding hidden OpenRouter providers (#4406) 2025-08-20 10:00:18 +03:00
Cohee c1c1942f9a Sync openrouter providers list
Closes #4405
2025-08-19 21:39:29 +03:00
cloak1505 0c2e2f90a8 Add Moonshot AI to OpenRouter providers 2025-07-14 01:56:55 -05:00
Cohee 9197527c13 Sync OpenRouter providers 2025-07-13 15:51:57 +03:00
Cohee e1a55408b6 OpenRouter: match both id/text in select2 (#4237)
* OpenRouter: match both id/text in select2

* Update public/scripts/utils.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-06 14:41:25 +03:00
Cohee 28f5b74cc7 OpenRouter: Use display name for options on text completion 2025-06-25 22:05:16 +03:00
Cohee 17511c444f Hide image models from Together textgen select 2025-06-25 21:39:24 +03:00
cloak1505 3a439ecf77 Sync OpenRouter providers list 2025-06-06 02:08:06 -05:00
Cohee 5e4c570eb0 textgen-models.js: update for new popup 2025-06-02 23:58:19 +03:00
cloak1505 cc75768668 Actual copy and paste
Turns out the doc is already alphabetized but with dead providers moved to the top, so I didn't have to alphabetize the whole list and manually remove the dead ones.
2025-05-10 05:42:15 -05:00
cloak1505 c7963d683f Update and alphabetize OpenRouter providers list 2025-05-09 23:41:19 -05:00
Cohee a089727591 Extract templates, replace pagination format 2025-05-01 17:46:02 +03:00
Yokayo db67633af6 Merge branch 'SillyTavern:staging' into staging 2025-04-29 17:16:15 +07:00
Cohee 0ca4cc08bb Sync OpenRouter providers list 2025-04-28 21:57:47 +03:00
Yokayo 11908f7363 Work on tl 2025-04-28 18:45:16 +07:00
Cohee 7f22def794 Merge pull request #3881 from DreamGenX/dg_lucid
DreamGen Lucid
2025-04-19 22:01:37 +03:00
DreamGenX dc6407ee8f DreamGen Lucid 2025-04-19 15:04:00 +02:00
Cohee 797de862cf Fix linter 2025-04-11 15:15:29 +03:00
Kristian Schlikow e062a33f56 Use the proper quotes 2025-04-11 12:14:15 +00:00
Kristian Schlikow f238e58731 Remove unnecessary new line 2025-04-11 12:12:14 +00:00
Kristian Schlikow c5ebe4b4b1 Update the model filter for FAL.AI and update the list of providers for OpenRouter 2025-04-11 12:09:13 +00:00
Cohee 74addf1241 Fix TogetherAI models list 2025-03-22 19:39:23 +02:00
cloak1505 c593c9fe2a Update OpenRouter providers 2025-03-07 13:47:12 -06:00
Cohee 4d323ec76f OpenRouter: Add new providers to the list
Closes #3491
2025-02-16 18:15:26 +02:00
Cohee d5bdf1cb90 Add settings.json-backed KV string storage
Fixes #3461, #3443
2025-02-11 20:17:48 +02:00
pcpthm 94af9fc1a3 Add new OpenRouter providers 2025-01-31 21:49:49 +09:00
Eradev a06270fc85 Fixed display bug when selecting a model 2025-01-15 08:04:15 -05:00
Eradev c1535f1b34 Fixed class filter & new models count in featherless.ai 2025-01-15 00:35:40 -05:00
Eradev 6b494af146 Fix the date for featherless.ai models 2025-01-15 00:19:47 -05:00
Yokayo 1d5cf8d25c Work on translation 2025-01-12 00:42:58 +07:00
cloak1505 222edd5c36 OpenRouter: Update providers list 2024-12-21 01:30:35 -06:00
Cohee 3167019faf Add generic text completion API type (100% OAI compatible) 2024-12-13 01:12:10 +02:00
Cohee 4c0da00f5b Update OpenRouter providers listing
Closes #3089
2024-11-18 20:09:56 +02:00
Cohee a1d3b7f3ef Merge branch 'staging' into webpack 2024-10-18 20:12:51 +03:00
Cohee f61c2403d6 Featherless: Fix model pagination init 2024-10-18 20:05:50 +03:00
Cohee 3387fe4bd6 unvendor: Replace DOMPurify 2024-10-16 23:11:13 +03:00
Cohee 93137e3e2a [chore] Fix lint errors 2024-10-13 14:02:53 +03:00
Cohee 4bdaca5f8e Featherless: More specifity for selectors 2024-10-09 22:14:49 +03:00
Cohee f436000a9d Featherless: Fix /model command 2024-10-09 22:04:08 +03:00
Cohee 151a77cd36 Initialize page on load 2024-10-09 21:51:31 +03:00
DarokCx 64ff555425 BugFix and UI improvements 2024-10-09 13:56:31 -04:00