1445 Commits

Author SHA1 Message Date
Cohee
0773a86922 Loop 3 times before discarding response length override on save 2025-01-14 00:15:23 +02:00
Cohee
749c5df29a Restore temp response length as early as possible
Fixes #3297
2025-01-13 21:20:26 +02:00
Cohee
a62fa3b073
Merge pull request #3287 from SillyTavern/fix-first-included-message-id-macro
Fix `{{firstIncludedMessageId}}` to not rely on DOM
2025-01-10 12:17:09 +02:00
Wolfsblvt
e33c3771f5 No metadata save 2025-01-10 01:27:02 +01:00
Cohee
d78577c46d
Merge pull request #3266 from d-ber/character_import_speedup
Character import speedup by delaying tag import
2025-01-09 23:06:07 +02:00
Cohee
2ab59f5a7a chore: reformat new code 2025-01-09 22:57:43 +02:00
Wolfsblvt
7a2276c176 Fix {{firstIncludedMessageId}} to not rely on DOM
Up until now, the {{firstIncludedMessageId}} macro relied on searching the DOM for the actual CSS class applied for the context line.
Bad design, as the actual message was maybe not display, with display X messages enabled.

- Use setInContextMessages() that sets the context line on generation to also update a chat metadata field
- Utilize that field inside the macro
- Update docs to clarify that this will only show the mesid that was relevant during last generation
2025-01-09 21:23:18 +01:00
Cohee
0a03793d7b Add /chat-render and /chat-reload commands 2025-01-09 21:10:12 +02:00
Cohee
41a0d6919f
Merge pull request #3273 from cierru/force_chid_in_generate_quite_prompt
Add the option to specify a character for generateQuietPrompt
2025-01-07 20:18:56 +02:00
Cohee
68d8d322a9 Clarify comment regarding groups 2025-01-07 20:15:35 +02:00
cierru
57d6938d6c Added the force_chid parameter to the generateQuietPrompt function 2025-01-07 17:54:23 +05:00
d-ber
d4f23de003 fix toasts and final char selection 2025-01-06 22:41:32 +01:00
d-ber
c22ed52c72 fix function name, and minor fixes 2025-01-06 21:49:02 +01:00
d-ber
96cd683d0e added tag import back into importCharacter 2025-01-06 00:30:15 +01:00
d-ber
c7cbeed9bb speed up char import by postponing tag import 2025-01-05 22:36:10 +01:00
Cohee
2f5f9a437d Allow running generate interceptors on quiet prompts 2025-01-03 01:10:14 +02:00
Cohee
f9e3666d23 Add debug function to toggle regeneration warning with Ctrl+Enter 2025-01-01 16:56:44 +02:00
Cohee
c4f119ebf9 cfg: Adjust max context size based on injected prompt
Close #2424
2024-12-27 23:43:16 +02:00
Cohee
0d79bb6f6d Firefox: restore chat scroll top on edit textarea autofit 2024-12-26 13:24:48 +00:00
Cohee
252043ae11 Move code for cleaner diff 2024-12-21 17:33:18 +02:00
Cohee
85ce522270 Remove invalid style 2024-12-21 17:24:54 +02:00
Cohee
2fbe689605 Implement autofit for edit textarea 2024-12-21 16:47:25 +02:00
Cohee
94de9411b6
UI performance fixes (#3207)
* Optimize visibility checks for burger and wand menus

* Optimize message actions visibility toggle

* Run drawer toggle in animation frame

* Replace jQuery slideToggle with a 3rd-party lib

* Refactor export button functionality to manage popup state with a boolean flag

* Do not close the pinned drawer on unpin

* Revert "Do not close the pinned drawer on unpin"

This reverts commit e3b34e9a586db853dd84809f4187d5b29cb9ac36.

* Refactor slideToggle options

* ease-in-out

* Don't skip frame on drawer toggle
2024-12-20 22:20:46 +02:00
Cohee
1dd97c139e Text Completion: Improve generic source model display 2024-12-20 20:59:36 +02:00
Cohee
7e7b3e30c4
Tool Calling: Implement stealth tool defintions (#3192)
* Tool Calling: Implement stealth tool defintions

* Move isStealth check up

* Always stop generation on stealth tool calls

* Image Generation: use stealth flag for tool registration

* Update stealth property description to clarify no follow-up generation will be performed

* Revert "Image Generation: use stealth flag for tool registration"

This reverts commit 8d13445c0b66e4c0ef1ddcfaf18ab185464de600.
2024-12-19 21:17:47 +02:00
Cohee
7eacdac665 Add bypass status check for Generic TC API type 2024-12-16 21:29:41 +02:00
Cohee
756f88b5aa Merge branch 'staging' into tc-split-generic 2024-12-14 15:24:10 +02:00
Cohee
3167019faf Add generic text completion API type (100% OAI compatible) 2024-12-13 01:12:10 +02:00
Cohee
47dea8159e Merge branch 'staging' into inject-filter 2024-12-12 23:35:23 +02:00
Cohee
0849cfca98 Remove unused imports 2024-12-06 22:13:34 +02:00
Cohee
0da4590597 Merge branch 'staging' into getcontext-typed 2024-12-06 21:31:53 +02:00
Cohee
3ed095bb0e
Merge pull request #3154 from SillyTavern/optimize-past-swipes
Optimize past swipes
2024-12-06 21:31:19 +02:00
Cohee
1a8e37d3a5 Remove counter hide on right swipe 2024-12-06 20:54:45 +02:00
Cohee
d6f34f7b2c Add prompt injection filters 2024-12-06 19:53:02 +02:00
Cohee
77841dbc21 Add types for SillyTavern.getContext 2024-12-06 16:41:26 +02:00
Cohee
3502bfcaa0 Add {{groupNotMuted}} 2024-12-05 22:57:02 +02:00
Cohee
23a10fdc22 Optimize past swipe counters performance 2024-12-05 15:32:30 +00:00
Cohee
41a3035a2a Use filter order in group candidates list 2024-12-04 15:22:53 +00:00
Cohee
79700fd983 Add Kobold Lite chats import 2024-12-04 00:44:50 +02:00
Cohee
69da293fb9 Show used preset in itemization dialog 2024-12-03 23:27:39 +02:00
Cohee
b08cdffc64 Add {{lastGenerationType}} macro 2024-12-02 01:39:57 +02:00
Cohee
8e94589f83 Revert keepContextLock flag in setGenerationParamsFromPreset 2024-12-01 15:13:17 +02:00
Cohee
c930a66d81 Merge branch 'staging' into 202411-backend-maxctx 2024-12-01 14:39:01 +02:00
Cohee
56c99000c4 Split auto-switch toast 2024-11-30 18:21:15 +02:00
Cohee
4a7a11dfd5 Add JSdoc for function 2024-11-30 18:19:31 +02:00
Cohee
8e20ebb534 Run eslint 2024-11-30 18:14:46 +02:00
Joe
f4ef9697e9 Account for optional cache and remove timing code 2024-11-26 20:07:30 -08:00
Joe
1395c0b8c6 Encapsulate logic into filters instead of spreading around 2024-11-26 19:47:09 -08:00
Joe
78c55558af Merge branch 'staging' of https://github.com/joenunezb/SillyTavern into optimize/improve-search 2024-11-26 18:00:28 -08:00
Karl-Johan Alm
e02f57b7b0
respect context unlocked flag when auto-setting context size 2024-11-26 10:00:52 +09:00