Commit Graph
226 Commits
Author SHA1 Message Date
buzzandCohee 0e5b509dc3 Drop Soulkyn import (#4372)
* Fix Soulkyn import

Generate and supply necessary headers to Soulkyn API request.
Fixes #4323

* Drop soulkyn import

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-08-13 22:25:21 +03:00
Cohee cc169fffc2 Tags: Add unused tags pruning to tags management 2025-08-10 23:41:50 +03:00
CoheeandCopilot b0820c4517 Text Completion: Inject Story String @ depth (#4362)
* TC/AF: Add Story String position

* Update public/scripts/power-user.js

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

* Add before/after anchors as story string params

* Move autofix story string at settings load

* Substitute in story string wrappers

* Only add an auto-newline after story string if wrap is enabled

* Do not init names_force_groups with default value

* Update default settings

* Auto-delete obsolete fields from instruct templates

* Update default templates

* Remove newline from GLM-4 prefix

* Format as one line

* Remove auto-fix leftovers from renderStoryString

* Remove pointless reassignments in autoFixMissingField

* Update KoboldAI template

* Add info hint for Story String sequences

* Update default templates

* Reformat extractMessageFromData

* Fix condition in autoFixStoryString

* Update tooltip text for Story String Sequences

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-09 20:33:04 +03:00
Cohee 0b7f9451f4 Adjust addl. params YAML placeholders
Fixes #4333
2025-07-31 01:18:04 +03:00
Marcela Petra Ferraz de NovaesandCohee 34118bbdc2 Feature/Perchance AI Character Chat import (#4211)
* Adding ZLib and Jimp imports.

* Adding checks to see if UUID or URL are from Perchance.

* Adding conversion for Perchance cards and avatar.

* Adding label and example for Perchance character import.

* Adding localization of Perchance import option.

* Lint dangling comma fix.

* Simplifying one liner arrow function.

* Checking .gz at the end of Perchance url.

* Refactoring.

* Handling Base64 avatars.

* Fixing issue with UUID and refactoring.

* Adding char name to Perchance UUID example.

* Undoing unwanted variable name change of avatarBuffer to defaultAvatarBuffer

* Adding null check.

* Minor adjustments: renaming variable and organizing imports.

* Simple refactoring and reducing level of console messages.

* Add character source for perchance

* Add null check

* Use slug for source

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-06-28 16:18:26 +03:00
Cohee 8d2b9d2dab Secrets manager (#4131)
* Secret manager (now for real)

* Refactor secret manager dialog

* Add error handling to secrets migration

* Adjust default value

* Add secret-id slash command

* Add secret management slash commands

* Improve type definitions

* Improve compatibility of UUID generator

* Add copy buttons to manager view

* Improve compatibility with Vertex AI service account
- Changed to input since textarea can't be used with datalist
- Unblock regular key placeholder
- Save email as a key label
- Interrupt validation if the input is a UUID (autocompleted)

* Add optional label input for secret values in key manager dialog

* Update masking rules

* /secret-id: make the arg "required" (it's not)
2025-06-11 21:26:19 +03:00
Cohee 3ec9b1a099 Implement data clean-up dialog (#4072)
* [wip] Add user data cleanup service

* Add clean-up report viewer

* Fix review comments

* Add function comments

* Implement item actions

* Fix UI styles

* Add placeholder for empty results, update category description view

* Add displayEmptyPlaceholder method to show message when results list is empty

* Adjust menu buttons row

* Delete char-scoped data bank attachments on character deletion

* Data Bank: Handle character attachments on rename

* Remove line breaks in description strings

* Drop the category when the last item is deleted

* Skip invalid hashes instead of bailing
2025-06-01 13:56:34 +03:00
Cohee 1cbc4ac65b Fix HTML syntax errors by @Dakraid
Original commit: https://github.com/SillyTavern/SillyTavern/commit/fd4babab31c420e94df7d355db2d32c478b853c7
2025-05-29 21:38:55 +03:00
Cohee e1e2d3e726 Recent chats: add delete and rename buttons (#4051)
* [wip] Add rename/delete for recent chats

* Implement deleteCharacterChatByName

* Fix character name usage in deleteCharacterChatByName function
2025-05-29 21:21:53 +03:00
buzz 4bec90abb5 Import character card from Soulkyn (#4042) 2025-05-27 22:30:15 +03:00
Cohee 5ac472fbac Implement creator's note style tag preferences (#3979)
* Implement creator's note style tag preferences

* Decouple external media preference from style preference

* Allow explicitly empty prefixes in decodeStyleTags

* Fix Copilot comments

* Refactor global styles management into StylesPreference class

* Refactor openAttachmentManager to return an object instead of an array

* Unify header structure

* Re-render characters panel on setting initial preference

* Add note about classname prefixing

* Rename event handler
2025-05-22 22:32:53 +03:00
Cohee 864a733663 "Bind preset to connection" toggle (#3999)
* Implement THE TOGGLE

* Don't force reconnect on preset switch if toggle off

* Don't clear custom models list either
2025-05-17 20:40:58 +03:00
Cohee 155172a2b4 Dynamically update show more title 2025-05-14 00:49:33 +03:00
Cohee 49c1ee1373 Update avatar title format 2025-05-14 00:21:12 +03:00
Cohee 9744e6ab2f Button enlargement therapy 2025-05-14 00:15:33 +03:00
Cohee 0c411398f0 Collapse welcome recent chats button 2025-05-13 01:27:45 +03:00
Cohee e2c44161ed Show recent group chats 2025-05-12 21:44:00 +03:00
Cohee 637e9d5469 Set any char as assistant. Rework welcome prompt 2025-05-12 20:50:17 +03:00
Cohee f656fba213 Replace text with chevron 2025-05-12 20:18:37 +03:00
Cohee c45f1ceaff Show more recent chats 2025-05-12 20:16:56 +03:00
Cohee 31e2cf714a Permanent assistant autocreation and temporary chat restore 2025-05-12 02:14:54 +03:00
Cohee 9be173e34e Fix long date title 2025-05-12 01:03:23 +03:00
Cohee 415bb5f9b8 Add shortcuts to welcome prompt 2025-05-12 00:43:41 +03:00
Cohee e975d37436 [wip] Welcome screen prototype 2025-05-12 00:28:42 +03:00
Cohee a089727591 Extract templates, replace pagination format 2025-05-01 17:46:02 +03:00
Yokayo 7eb23a2fcc Work on tl 2025-04-29 17:23:18 +07:00
Cohee 3e11a90b3c Add message and example counts to itemization templates 2025-04-27 02:26:43 +03:00
Cohee 1323ac1d13 Remove prompt manager export popup
Fixes #3782
2025-03-29 16:05:31 +02:00
bmen25124 bc08d42d0e Progress on move entry
* Fixed header alignment
* Building HTML with browser api instead of string.
* jqueryElement.data(key, value) usages converted to jqueryElement.attr(data-key, value)
* Logs simplified
* Removed success toastry message
2025-03-27 06:21:52 +03:00
Cohee 4df98b0341 Add macro for charDepthPrompt 2025-03-18 20:27:15 +02:00
Yokayo 40c3674da1 Update tl 2025-03-17 16:09:36 +07:00
Gness Erquint e57396040d No swiping hotkeys when modifiers are held. 2025-03-15 00:43:37 +03:00
kingbri e476063f32 Macros: Update mesExamplesRaw documentation
Works as a normal macro and not just with story string.

Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com>
2025-03-07 13:08:30 -05:00
Wolfsblvt aee8441fc4 Mobile prompt itemization - duh
- Make it into a popup. There is no space
2025-02-10 15:07:57 +01:00
Cohee 312969462e Fix AICC website reference 2025-01-26 20:35:24 +02:00
Cohee 6aaeb754ef Exportable temporary assistant chats 2025-01-24 00:12:00 +02:00
Cohee 15cc825f43 Template clean-up 2025-01-14 21:34:39 +02:00
Rendal 3674c9d020 Fix formatting of 'Context Size - Response Length' label.
Fixing and adding more translations.
2025-01-14 14:45:17 +00: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 a585f3abcc Add {{firstDisplayedMessageId}} macro 2025-01-09 21:12:34 +02:00
Cohee 2c5cffe6be Typo fix in data-i18n attr 2025-01-01 17:12:36 +02:00
waht cf8bb8817b bug fix, use data-i18n="[title]Extensions" 2025-01-01 10:52:01 +08:00
Cohee 6d0f58c862 Merge pull request #3244 from waht41/bugfix/extension-translate
bug fix, translate extension button
2024-12-31 20:50:08 +02:00
Cohee b4c275f9e4 Move translation to HTML template 2024-12-31 20:49:29 +02:00
Cohee 75485f2d7d Add missing space and line break 2024-12-31 16:09:25 +02:00
Rivelle e5989e0118 Update themeDelete.html 2024-12-31 14:18:57 +08:00
Rivelle e34d777e11 Update itemizationChat.html 2024-12-31 14:17:04 +08:00
Rivelle 71fc73ce37 Update itemizationChat.html 2024-12-31 14:04:30 +08:00
Rivelle 245b9384bc Update debug.html 2024-12-31 14:03:05 +08:00
Rivelle 4ee0375120 Update installExtension.html 2024-12-31 14:02:09 +08:00