Commit Graph

1619 Commits

Author SHA1 Message Date
40c3674da1 Update tl 2025-03-17 16:09:36 +07:00
248132dd89 Set debug level to unshallow warnings 2025-03-16 02:25:07 +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
383806325a Add shallow character load mode 2025-03-04 10:00:12 +00:00
bdbddd4ed3 Added time to first token for swipe 2025-03-04 05:50:02 +03:00
d14b5e51a9 Added time to first token 2025-03-04 05:19:38 +03:00
7be6e0d5af Fix continue duplicating reasoning block 2025-03-04 00:42:50 +02:00
7d568dd4e0 Generic generate methods (#3566)
* sendOpenAIRequest/getTextGenGenerationData methods are improved, now it can use custom API, instead of active ones

* Added missing model param

* Removed unnecessary variable

* active_oai_settings -> settings

* settings -> textgenerationwebui_settings

* Better presetToSettings names, simpler settings name in getTextGenGenerationData,

* Removed unused jailbreak_system

* Reverted most core changes, new custom-request.js file

* Forced stream to false, removed duplicate method, exported settingsToUpdate

* Rewrite typedefs to define props one by one

* Added extractData param for simplicity

* Fixed typehints

* Fixed typehints (again)

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-03-03 10:30:20 +02:00
7522fa2e79 Revert "Account for generated depth on non-continue" 2025-03-02 00:55:52 +02:00
0bedb6e0ff Autoformat 2025-03-01 05:49:18 -08:00
ccd6a1631a Account for generated depth on non-continue 2025-03-01 05:48:11 -08:00
639c0235f9 Handle 'object' case as indexOf 2025-02-28 23:37:35 +02:00
284bac9b49 Add type of this_chid 2025-02-28 22:51:34 +02:00
b3eb6e071f Merge branch 'staging' into chid-unify-type 2025-02-28 22:04:14 +02:00
4f224550f6 Hide "persona connections" in create form 2025-02-28 21:26:16 +02:00
12335f4860 Improve type handling 2025-02-28 13:46:16 +00:00
b2ce76c84c Return to using string type for this_chid 2025-02-28 13:37:36 +00:00
83e75439ab Fix duplication and scenario override for first in the list 2025-02-28 10:21:33 +02:00
f33464527b Fix deletion of the first char in the list 2025-02-28 10:18:57 +02:00