Cohee
1de4f30775
Prefer const in variable definition
2025-10-26 15:19:41 +02:00
db315ecf0f
Fix koboldcpp abort generation error ( #4693 )
...
* Enhance contribution guidelines for pull requests
Added guidelines for maintaining workflow during PRs.
* fix abort generation error when koboldcpp is set with a password
* add parameter type, and remove unecessary line
* oops, missing comma
* eslint
* remove header content type
---------
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com >
Co-authored-by: Your Name <you@example.com >
2025-10-26 15:19:10 +02:00
Cohee
256398f607
Merge branch 'release' into staging
2025-10-26 15:15:02 +02:00
Kristian Schlikow and Cohee
b5083c7b23
fix: Enhances model display for Fal.ai image gen source ( #4694 )
...
* fix: Enhances model display for Fal.ai image gen source
* Move text processing to backend
---------
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com >
2025-10-26 15:14:28 +02:00
Cohee
133ad15a83
Prevent propagation and editing of 'json_data' field in character data ( #4690 )
2025-10-24 15:44:50 +03:00
2df8e52d48
If the world-info has no comment, show it's keys in the placeholder. ( #4681 )
...
* Show keys in commentInput's placeholder.
* Fixed.
https://github.com/SillyTavern/SillyTavern/pull/4681#discussion_r2450822592
https://github.com/SillyTavern/SillyTavern/pull/4681#discussion_r2450827302
https://github.com/SillyTavern/SillyTavern/pull/4681#discussion_r2450834282
https://github.com/SillyTavern/SillyTavern/pull/4681#discussion_r2450844011
* Update comment backfill logic
* Don't update placeholder with secondary keys
* Fix MAX_COMMENT_LENGTH to enforce a limit of 100 characters
---------
Co-authored-by: user <user@exmaple.com >
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com >
2025-10-23 22:10:08 +03:00
Cohee
55969bc96e
Chat Completion: Streamline settings and API key handling ( #4687 )
...
* refactor: streamline CC settings and API key handling
* Add types for API settings
* Allow keyless custom source connection
2025-10-23 21:28:37 +03:00
DreamGenX
4e428c938d
update dreamgen presets ( #4683 )
...
* update dreamgen presets
* remove dreamgen presets
* remove dreamgen presets
2025-10-23 21:07:08 +03:00
Cohee
e9cd32a123
Enhance contribution guidelines for pull requests
...
Added guidelines for maintaining workflow during PRs.
2025-10-23 12:35:15 +03:00
Cohee
da2fbbbb15
Ollama: Always truncate embedding inputs
...
https://docs.ollama.com/api#parameters-8
2025-10-23 00:58:00 +03:00
Cohee
d32ac6c018
Unbrick preset saving
2025-10-23 00:50:42 +03:00
Cohee
860e80fe0a
Update default sampler presets for Text Completion and AI Horde / Kobold Classic ( #4686 )
...
* Update default sampler presets for Text Completion and AI Horde / Kobold Classic
* do_sample = true
* Add missing fields to TC presets
* Consolidate Default and RecoveredRuins
* Fix rep.pen in Kobold presets
* Adjust TC samplers in default settings.json
2025-10-22 23:01:48 +03:00
f0ceba43e9
feat: [Electron Hub] Support Vector Storage, Better searching for image engine ( #4540 )
...
* feat: [Electron Hub] Add Vector Storage, Better searching for image model list
* feat: [Electron Hub] Add quality parameter for Image Engine
* fixed ESLint
* Update public/scripts/extensions/vectors/index.js
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* small tweaks
* Use default getOpenAIVector
* Refactor and clean-up code
* Move endpoint filtering logic to backend
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com >
2025-10-21 23:38:12 +03:00
Cohee
4add4f0090
Add official GLM API as CC provider ( #4678 )
...
* Add UI elements
* Add support for model configuration
* fix: update API request parameters for improved handling
* Add logo img
* Fix tool calling with negative index
* Include tool calls into 'last in context' calculation
* feat: add support for captioning
2025-10-21 22:37:27 +03:00
Cohee
c0e84aaa16
Merge branch 'release' into staging
2025-10-21 20:56:09 +03:00
Cohee
46cb4b5fcb
fix: freshChat detection on group chat load.
...
This breaks persona refresh on untainted group chats. I have no better solution for that yet.
2025-10-21 20:55:55 +03:00
Cohee
3e7b511af2
fix: return debounced save in deleteMessage
2025-10-21 20:16:30 +03:00
DeclineThyself and user
19c4aea25a
Fixed crash when top_logprobs is empty. ( #4680 )
...
Co-authored-by: user <user@exmaple.com >
2025-10-20 23:12:29 +03:00
Cohee
593fba5700
Refactor message edit function ( #4679 )
...
* Refactor message edit, show counters on last message
* fix: add warnings for missing message in chat array and DOM during edit
* Export messageEdit function
* Formatting fix
* Fix comment alignment
2025-10-20 21:16:38 +03:00
20556aa3dd
Refactored swipe and moved messageEdit to a separate function. ( #4610 )
...
* Extracted `messageEdit` and `messageEditCancel` from `.mes_edit` and `.mes_edit_cancel`
* Fixed.
https://github.com/SillyTavern/SillyTavern/pull/4633#discussion_r241505
https://github.com/SillyTavern/SillyTavern/pull/4633#pullrequestreview-3316588180
* Refactored `swipe` and moved `messageEdit` to a separate function.
Also, a few more minor changes.
* Fixed bug.
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2404789035
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2404789038
* Fixed.
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408682277
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408689706
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408690772
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408697066
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408705156
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408708088
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408725971
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408726241
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408740050
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408745918
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408753165
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408761262
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408764531
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408781694
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408784426
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408794672
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408802366
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408803433
* Fixed:
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408702506
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408805635
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2410368443
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2408791120
* Bugfixes. Incomplete.
* Fix formatting
* Use scrollTop because scrollIntoView breaks layout on phones.
* Only show '?' in `formaSwipeCounter` if something is wrong.
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2412169005
* Respect animation_duration if it's >= 0.
* Disabled expandNewMessage's animation on Cohee's request. https://github.com/SillyTavern/SillyTavern/pull/4610/files#r2408731744
* Only hide the swipe counter when a generation is ongoing.
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2440588779
* refreshSwipeButtons
* Adjust swipeDuration constant
* feat: add refreshSwipeButtons and isSwipingAllowed to context
* Fixed image swipes.
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2442489827
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2442490042
* Fixed.
https://github.com/SillyTavern/SillyTavern/pull/4610#issuecomment-3418657967
* Fixed: https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2442480238
* Fixed.
https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2442536011
* Minor refactor.
* Fixed: https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2443359660 https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2443359435
* Fixed: https://github.com/SillyTavern/SillyTavern/pull/4610#discussion_r2443357913
* Fix registration of click events
* Fix passing data to swipe events
---------
Co-authored-by: user <user@exmaple.com >
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com >
2025-10-20 20:51:33 +03:00
Cohee
743c26a9f8
fix: nanogpt and deepseek models not saving to presets
2025-10-19 23:36:45 +03:00
Cohee
034a5f3aa4
fix: timeout git process after 5 minutes of inactivity ( #4673 )
...
* fix: timeout git process after 10 seconds of inactivity
* fix: increase git process timeout to 10 minutes
* 10->5 min, remove timeout from install
2025-10-19 22:03:19 +03:00
Cohee
ba79e7d94c
Fix event handlers in cosyvoice.js
...
Fixes #4668
2025-10-19 16:50:55 +03:00
Cohee
5c62c3a90d
feat: add move up/down functionality for alternate greetings ( #4676 )
...
* feat: add move up/down functionality for alternate greetings
* Remove disabled cursor style
2025-10-19 16:46:19 +03:00
Cohee
5eb43e45b6
fix: set metadata tainted flag on swipe deletion
2025-10-18 19:15:43 +03:00
StageDog
4bda4444e4
feat: Apply preset regexes before scoped regexes + avoid unnecessary popping up ( #4672 )
...
* feat: apply preset regexes before scoped regexes
* feat: apply preset regexes before scoped regexes for debugger list
* fix: don't notify reload regexes when save preset through ui button
* docs: add comment for SCRIPT_TYPES order
* fix: updatePreset is wrongly reset preset
2025-10-18 19:08:11 +03:00
Cohee
94ba7bcf2d
fix: /cut of the first displayed message
2025-10-18 17:14:55 +03:00
Cohee
ea3c5029c6
fix: prevent swipe deletion from /del command
2025-10-18 16:33:27 +03:00
StageDog
7dda524284
feat: set sortable handle for regex ( #4667 )
2025-10-17 22:13:18 +03:00
bmen25124 and Cohee
dcab740b99
Added deleteMessage method ( #4666 )
...
* Added deleteMessage
* Simpler swipeDeletion param
* Added to context
* Fix review comments
* Only offer swipe deletion if count of swipes > 1
* Improve array check
* Fix generation broken after message deleted
* Use named constant for confirmation result
* Save chat immediately
---------
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com >
2025-10-17 22:08:46 +03:00
Cohee
d08f3a2eef
Allow blockquotes with encoded tags ( #4662 )
...
* Allow blockquotes with encoded tags
Fixes #4634
* Cache canUseNegativeLookbehind result
* Optimize regex allocation
2025-10-17 19:42:10 +03:00
Cohee
47765b6205
CC: Add advanced formatting null settings notice ( #4661 )
2025-10-16 23:41:08 +03:00
Cohee
41c048ed35
Fix formatting in messageEditCancel
2025-10-16 23:30:15 +03:00
Cohee
59a80fb0a0
getContext: export showSwipeButtons/hideSwipeButtons
2025-10-16 23:22:34 +03:00
37271ddad4
Extracted messageEdit and messageEditCancel from .mes_edit and .mes_edit_cancel ( #4633 )
...
* Extracted `messageEdit` and `messageEditCancel` from `.mes_edit` and `.mes_edit_cancel`
* Fixed.
https://github.com/SillyTavern/SillyTavern/pull/4633#discussion_r241505
https://github.com/SillyTavern/SillyTavern/pull/4633#pullrequestreview-3316588180
* Fixed..
https://github.com/SillyTavern/SillyTavern/pull/4633#issuecomment-3383321321
https://github.com/SillyTavern/SillyTavern/pull/4633#pullrequestreview-3316602505
* Fixed...
* Fixed....
https://github.com/SillyTavern/SillyTavern/pull/4633#discussion_r2415124843
https://github.com/SillyTavern/SillyTavern/pull/4633#discussion_r2415124845
* Fix type conversion errors
* Fix type error
* Fix being unable to close message edit on first message with escape
* Fixed.
https://github.com/SillyTavern/SillyTavern/pull/4633#issuecomment-3412364573
Another bug found (sorry):
Open edit on the last message, move it up, then move it back down. Swipe buttons appear, as far as I understand your intention, they shan't.
* showSwipeButtons: return early if message edit is open
---------
Co-authored-by: user <user@exmaple.com >
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com >
2025-10-16 23:20:47 +03:00
Cohee
74c158bd2e
Merge pull request #4656 from SillyTavern/staging
...
Staging
1.13.5
2025-10-16 20:31:22 +03:00
Cohee
91112362af
Fix isClaude3or4 for OR caching
2025-10-15 22:59:41 +03:00
Cohee
bd30a31815
Forgor context size
2025-10-15 21:30:52 +03:00
Cohee
23a59f27f1
claude-haiku-4-5
2025-10-15 21:27:46 +03:00
Cohee
10ebf09438
Fix control binds in gpt-sovits provider
...
Fixes #4655
2025-10-15 20:10:26 +03:00
Cohee
87d33b4d0b
Highlight just imported chats in the list
2025-10-15 01:12:29 +03:00
Cohee
b2c3f749d2
1.13.5
2025-10-15 00:56:03 +03:00
Cohee
3234045d64
Add bulk and drag&drop to chats import ( #4652 )
...
* Add bulk and drag-drop to chats import
* Perform list refresh only once
2025-10-15 00:43:30 +03:00
Cohee
0748af59e3
Fix missing swipe_info on first messages
2025-10-13 01:16:06 +03:00
Cohee
a559f45ad4
Fix off-by-one cases in user prompt filler logic ( #4648 )
...
* Fix off-by-one cases in user prompt filler logic
Fixes #4645
* Skip inject pre-allocation in CC prompts
* Fix filler insert on continuing on user message
2025-10-12 23:36:17 +03:00
IceFog72
2ef9b3977b
groupMemberListPopout placement ( #4649 )
...
`$('body').append(newElement);` -> `$('#movingDivs').append(newElement);`
2025-10-12 22:53:01 +03:00
L and Cohee
b7f93b3594
expose openThirdPartyExtensionMenu for Video Avatar extension ( #4646 )
...
* init
* Use less egregious export method
---------
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com >
2025-10-11 22:13:18 +03:00
df7f046912
Preset Regex: add preset type for script regexes ( #4642 )
...
* feat: preset regex
* refactor: unify `saveScriptsByType`
* fix: default branch for `saveScriptsByType`
* refactor: resolve some reviews
* fix: lint
* refactor: getPresetName -> getCurrentPresetName
* refactor: unify regex allow operation
* feat: notify whether to reload current chat when preset is changed
* refacotr: set timeout for reload current chat notification
* fix: _ -> lodash
* i18n
* Refactor API ID access
* refactor: replace UNKNOWN type with a separate constant
* refactor: consolidate CSS rules for scoped and preset script blocks
* Extend toast timeout
* Fix bug with moving, refactor
* Refactor bulk toggle operations
* Use for..of for preset application
* refactor: enhance parameter documentation for scriptType in regex functions
* fix: await loadRegexScripts in event handlers
* fix: correct script type in saveScriptsByType for preset handling
* fix: add null checks for preset manager and API ID in regex functions
* feat: implement expandable regex script options in UI
* Always show edit/delete buttons
* Add title attribute to regex script name
* fix: correct class name for regex script display
* Remove extra paddings from script blocks
* fix: ensure preset scripts are only disallowed if currently allowed during rename
* fix: reload on bulk script toggle
* feat: add PRESET_RENAMED_BEFORE event type and emit it during preset renaming
* fix: always preserve preset extensions on rename
* Handle horde in getPresetManager
---------
Co-authored-by: ZoinkCN <zoinkcn@outlook.com >
Co-authored-by: StageDog <aksanajw845@gmail.com >
2025-10-11 22:10:06 +03:00
Cohee
e4d779d450
NanoGPT: Add reasoning content display
...
Fixes #4643
2025-10-11 00:26:45 +03:00
Cohee and Wolfsblvt
df8f2a477a
feat: prevent scrolling of containers when using focused number inputs ( #4629 )
...
* feat: prevent scrolling of containers when using focused number inputs
#4607
* feat: enhance number input wheel behavior with slider sync and Firefox support
* refactor: optimize number input wheel handler with native DOM methods and type checks
* Refactor: Move into dom-handlers folder
* refactor: use optional chaining for slider element selection
* Simplify file paths
* Unlock scroll to edit in misc controls
* refactor: throttle wheel event handler updates
* refactor: Extract value update into a function
* fix: NaN-aware value clamping
* fix: Add sanity checks for input value calculations
---------
Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com >
2025-10-10 21:42:44 +03:00