Commit Graph

1635 Commits

Author SHA1 Message Date
20cdcc37fc Fix fixable lints 2025-03-19 20:00:33 +02:00
6a4b8c3870 Added group wrapper events 2025-03-18 22:21:25 +03:00
4df98b0341 Add macro for charDepthPrompt 2025-03-18 20:27:15 +02:00
8d279dd94d Fix saveChat positional argument migration 2025-03-18 10:33:52 +00:00
c92ca8dbfb Merge branch 'staging' into integrity 2025-03-18 01:51:07 +02:00
4965ada785 Shorten the popup header text 2025-03-18 01:41:27 +02:00
785cacbcb6 Add migration of positional arguments 2025-03-18 01:39:23 +02:00
49949f2f8e Merge pull request #3705 from Yokayo/staging
Update ru-ru translation
2025-03-18 00:01:15 +02:00
ca53323a08 Fix deleting swipes overwriting reasoning
- Well, someone forgot about syncing extras and mes data again....
- Built the oppositive function of `syncMesToSwipe`, so we can now call `syncSwipeToMes`
2025-03-17 20:59:08 +01:00
e7c9960a45 Fix 2025-03-18 02:15:13 +07:00
40c3674da1 Update tl 2025-03-17 16:09:36 +07:00
8bd17de2f3 Invert conditions 2025-03-16 21:49:36 +02:00
5fca39fae7 Fix force flag not being passed 2025-03-16 21:39:31 +02:00
5ab284f1f5 Merge branch 'staging' into integrity 2025-03-16 21:28:37 +02:00
8ec83fd5d9 Fix corruption due to this_chid shift (#3669)
* continue works same as swipe continued message isn't depth counted

* correct early-out check

* update regex depth setting tooltips for accuracy

* update max tooltip

* remove redundant check

* Fix corruption due to this_chid shift
Fixes #3667

* Unshallow current character on reload

* Allow -1 as a min depth value

* Use selectCharacterById, fix rename logic

* Remove pointless local variables

* Add 'switchMenu' param to selectCharacterById

---------

Co-authored-by: Reithan <bo122081@hotmail.com>
2025-03-16 19:14:27 +02:00
d42a81f97c New connection manager events, ConnectionManagerRequestService (#3603) 2025-03-16 16:58:34 +02:00
248132dd89 Set debug level to unshallow warnings 2025-03-16 02:25:07 +02:00
400d29e97e Add chat integrity check to saveChat 2025-03-16 02:24:20 +02:00
0017358f8b Gemini inline images (#3681)
* Gemini images for non-streaming

* Parse images on stream

* Add toggle for image request

* Add extraction params to extractImageFromData

* Add explicit break and return

* Add more JSdoc to processImageAttachment

* Add file name prefix

* Add object argument for saveReply

* Add defaults to saveReply params

* Use type for saveReply result

* Change type check in saveReply backward compat
2025-03-14 20:15:04 +02:00
0d2bf00810 Decrease checks interval 2025-03-14 10:44:48 +02:00
f362f94c2d Decrease connection timeout, set 'valid' status on 'invalid URL', don't wait if not needed
Fixes #3683
2025-03-14 10:43:00 +02:00
79a8080b7d Merge pull request #3671 from bmen25124/events_type_param
New context methods, added type parameter to message events
2025-03-13 01:50:59 +02:00
37819df542 Move reasoning continue regex depth adjustment 2025-03-12 23:59:53 +02:00
160f7431d6 Fix isPrefix for continue on reasoning 2025-03-12 23:55:16 +02:00
ddb77732f2 New context methods, added type parameters to message events 2025-03-12 21:25:16 +03:00
01ef823da9 Dont count Continue as message 0 (#3594)
* continue works same as swipe continued message isn't depth counted

* correct early-out check

* update regex depth setting tooltips for accuracy

* update max tooltip

* remove redundant check

* Allow -1 as a min depth value

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-03-12 19:59:15 +02:00
1b02426df1 Unshallow current character on selectCharacterById 2025-03-12 11:13:48 +02:00
a392593e53 Merge pull request #3634 from SillyTavern/continue-from-reasoning
Fix auto-parsing of continue from reasoning
2025-03-09 16:22:02 +02:00
c03da65821 Run parsing at least once before rendering reasoning DOM on continue 2025-03-09 16:08:29 +02:00
5d74507e50 Remove goofy comment leftover 2025-03-09 14:09:39 +02:00
19b7deaed0 Ditto for right swipe 2025-03-09 14:08:24 +02:00
6aaa533410 Prevent rollover on keyboard left swipe if repeating
Closes #3636
2025-03-09 13:42:30 +02:00
96d79ac4e9 Merge branch 'staging' into continue-from-reasoning 2025-03-09 01:19:25 +02:00
0ea64050ff Parse reasoning in multi-swipe swipes 2025-03-08 23:06:56 +02:00
d0068ecbab Clean-up swipe_info of multi-swipes 2025-03-08 22:48:42 +02:00
ca14352972 Fix syncMesToSwipe checks
Ported from #3634
2025-03-08 22:33:26 +02:00
50a0f41736 Sync mes to swipe on stream finished 2025-03-08 22:29:18 +02:00
980ed76cc3 Fix auto-parsing of continue from reasoning
Continues #3606
2025-03-08 12:58:26 +02:00
0423cb7ad3 Do not apply instruct formatting if on CC 2025-03-07 22:53:30 +02:00
95e0be7e9e MesExamples: Make macros consistent with story string
mesExamples in the story string is formatted while mesExamplesRaw
is unformatted. However mesExamples when used as a normal macro
is unformatted. This causes an inconsistency in usage which is now
corrected.

Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com>
2025-03-07 13:03:44 -05:00
50f1e3f0f2 Added translation to reasoning block (#3617)
* Added translate to reasoning block

* Added mising reset value

* Shortcut nullable type

* Added reasoning edited/deleted events, better naming

* Fixed async call

* Added await to saveChat calls

* Exported updateReasoningUI

* Removed translated reasoning on edit if auto mode is none

* Added new value check before updating reasoning block, fixed an issue that display value stays same when we edit the message.

* Translate reasoning before the main message

* Fixed auto mode translate for reasoning message

* Translate reasoning first. Prevent out of bounds access

* Fix translating reasoning on swipe generation

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-03-06 21:30:17 +02:00
8161690ce6 Merge branch 'staging' into char-shallow 2025-03-06 20:55:22 +02:00
fb5f3e0f97 Changed param order, saved a tree 2025-03-05 18:39:19 +03:00
3cb24507a7 Shortcut nullable type 2025-03-05 17:53:44 +03:00
5398684ea2 Token rate round from 1 to 3 2025-03-05 17:28:15 +03:00
d3263b0e0f Removed rounding from time to first token display 2025-03-05 17:16:53 +03:00
06beaccdae Formatting 2025-03-05 14:44:07 +03:00
17d2771a75 time_to_first_token moved to extras 2025-03-05 14:42:29 +03:00
3d813e4ef6 Move shallow toggle to config.yaml 2025-03-04 23:32:42 +02:00
73d4922d70 Iinitial value from -1 to null, better calculation 2025-03-04 13:46:57 +03:00