Commit Graph

6184 Commits

Author SHA1 Message Date
Cohee c3e9d25307 Merge branch 'staging' into tool-calling 2024-10-02 22:35:33 +03:00
Cohee 85b0d135f1 Add utility function for formatting swipe counters 2024-10-02 22:22:33 +03:00
Cohee 0f8c1fa95d Save tool calls to visible chats. 2024-10-02 22:17:27 +03:00
Cohee 3335dbf1a7 Add empty tool calls to streaming processors 2024-10-02 01:59:53 +03:00
Cohee e8b9720425 Budgeting fix 2024-10-02 01:56:27 +03:00
Cohee 63724a2b38 eslint update 2024-10-02 01:54:47 +03:00
Cohee 68c87f7e7a
Fix code scanning alert no. 231: Prototype-polluting function
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2024-10-02 01:53:03 +03:00
Cohee c94c06ed4d Implement function tool calling for OpenAI 2024-10-02 01:45:57 +03:00
Cohee 8006795897 New tool calling framework 2024-10-02 01:00:48 +03:00
ceruleandeep 3dad029091 Add Featherless to modelSelectMap for /model 2024-10-02 06:55:32 +10:00
Cohee bb1139bda9 Merge branch 'staging' into model-write-in 2024-10-01 21:26:34 +03:00
Cohee 7d0cc9e372 Remove commented debug code 2024-10-01 20:48:45 +03:00
Cohee d3120afc60 Merge branch 'staging' into swipe-nums-for-all-mes 2024-10-01 20:46:10 +03:00
Cohee 6ba60e8f60
Merge pull request #2830 from nyxkrage/patch-2
Append continuation message after prefill when using "Continue Prefill" with Claude
2024-10-01 20:44:24 +03:00
Cohee a23c31dd09 Update visuals and labels of CC postfix/prefix drawers 2024-10-01 20:42:03 +03:00
DarokCx e7e3a09ce4 bugfixes 2024-10-01 13:01:12 -04:00
Cohee 80de28d251 Remove debug log 2024-10-01 19:50:56 +03:00
Cohee d5b845345e Better opacity handling. Remove debug logs 2024-10-01 19:48:46 +03:00
Cohee cd297f926e Smaller swipe arrows 2024-10-01 19:38:25 +03:00
Cohee 7747050233 Merge branch 'staging' into swipe-nums-for-all-mes 2024-10-01 19:27:20 +03:00
Cohee 33222191be Remove confusing toast from listvar 2024-10-01 19:15:53 +03:00
Cohee 89642f217d Merge branch 'staging' into send-commands-return-value 2024-10-01 19:08:34 +03:00
DarokCx aea985d78c added new filter and css fix 2024-10-01 12:02:18 -04:00
Yokayo 5b9504e7bb
Merge branch 'SillyTavern:staging' into staging 2024-10-01 21:26:07 +07:00
Yokayo 7f9023d3c2 Work on tl 2024-10-01 21:25:20 +07:00
Cohee c76fc7d23c /model: Better support for write-in controls 2024-10-01 15:02:14 +03:00
Cohee ab966db1e5 Refactor ensureSelectionExists for more readability 2024-10-01 14:28:34 +03:00
Cohee 42d24dbc47 Fix free mode extension on empty chats when {{charPrefix}} is used 2024-10-01 14:24:27 +03:00
Cohee 5363529068 Merge branch 'staging' into sd-args 2024-10-01 14:16:01 +03:00
Cohee 5489dd61a7 Pass /continue error to slash command executor 2024-10-01 14:14:19 +03:00
Cohee b4529e75c6 Don't wrap empty sysprompts in instruct mode 2024-10-01 13:16:55 +03:00
Cohee 6b61abc8ed Extract logic for enum providers 2024-10-01 02:30:24 +03:00
Wolfsblvt f6726db9fb Fix empty script injections on /listinjects 2024-10-01 01:30:20 +02:00
Wolfsblvt 56265540db sanitize HTML on html returns
- I had it in there for some time, I even tested it... likely gone during some commits
2024-10-01 01:23:34 +02:00
Cohee a63f99b8ce Add /imagine-style command 2024-10-01 02:11:24 +03:00
Cohee 909ac0c622 Merge branch 'staging' into sd-args 2024-10-01 02:08:14 +03:00
Cohee d96bb3dcea Merge branch 'send-commands-return-value' of https://github.com/SillyTavern/SillyTavern into send-commands-return-value 2024-10-01 01:55:24 +03:00
Wolfsblvt 398ae6ba2e Update doReturn() API with objectToHtmlFunc
- Allow future commands to provide a different "object to HTML" converter func than "object to text", if need be
2024-10-01 00:53:19 +02:00
Cohee d82dc4952b Merge branch 'staging' into send-commands-return-value 2024-10-01 01:52:33 +03:00
Wolfsblvt f317b1b764 Oversight, missed /send in refactoring... 2024-10-01 00:41:14 +02:00
Wolfsblvt 7a1b43eb89 Refactor /classify-expressions, deprecating...
- Update /classify-expressions, deprecating the old "format"
- Fix some oversights
2024-10-01 00:37:21 +02:00
Wolfsblvt 697b3b2034 Refactor /listvar, deprecate its "format" arg
- Update /listvar
- Fix toasts not doing correct HMTL here
2024-10-01 00:23:00 +02:00
Wolfsblvt 62fd450c59 Refactor /listinjects, deprecate its "format" arg 2024-10-01 00:06:18 +02:00
Cohee 392c98455e Merge branch 'staging' into patch-2 2024-10-01 00:39:23 +03:00
Cohee 7ac7398568 Remove debug log. Fix comment 2024-10-01 00:37:33 +03:00
Wolfsblvt e3c0c5442c Update /ask with return types, defaulting 'pipe' 2024-09-30 23:37:21 +02:00
Wolfsblvt d8379edee7 Update return types as optional via named arg
- Update the modified slash commands for chat sending to use the named arg
- Add `slashCommandReturnHelper` for shared funcitonality on return type usage
2024-09-30 23:32:24 +02:00
Cohee 3fd846fb5b Allow returning literal Infinity string from math operations 2024-09-30 23:52:01 +03:00
Cohee bed7df0038 Merge branch 'staging' into fix-math-commands 2024-09-30 23:26:04 +03:00
Cohee bc05c8de15
Merge pull request #2923 from SillyTavern/fix-piping-split-unnamed-args
Fix piping not actually using/inputting an array for empty unnamed args
2024-09-30 23:25:20 +03:00
Wolfsblvt 2dc7b5ded1 Allow using JSON arrays for math commands
- applies to all that receive a list. /add, /sub, /min, /max etc
- Parsing is the same as the other commands where we already allow "LIST" as an argument.
2024-09-30 21:24:22 +02:00
Cohee e32b701045 Merge branch 'staging' into swipe-nums-for-all-mes 2024-09-30 22:23:40 +03:00
Cohee 0d83480e90 Merge branch 'staging' into char-find-and-sendas-extended 2024-09-30 22:15:38 +03:00
Cohee a4d02bd967 Add /imagine-source command 2024-09-30 22:00:03 +03:00
Wolfsblvt 8ff2ef086b Update defs and enums for other math commands
- Now even the commands like `/div count charnumber` work well with auto complete
2024-09-30 20:59:42 +02:00
Cohee 9af4d62cdf Extend /sd command 2024-09-30 21:51:24 +03:00
Wolfsblvt 224249a0d2 Fix /sub actually allowing more than two vals now
- Fix by subtracting all from the first value
- Update the definition too
2024-09-30 20:50:18 +02:00
Wolfsblvt 4855f25419 Update /mul, /max and /min definition
- Update command definition for /mul, /max and /min to fit the actual code behind, split them too
- Add numbersAndVariables enum provider, to centralize
2024-09-30 20:45:39 +02:00
DarokCx 409d83e6ea BugFixes and added top model categorie selection 2024-09-30 14:34:40 -04:00
Wolfsblvt 0d38e63471 Why join and then split again, eh?
- Refactor /add actually using the array provided as the array for the internal `parseNumericSeries` inside `performOperation`
2024-09-30 20:28:52 +02:00
Wolfsblvt 140aeb2bb7 Fix piping not using array for empty unnamed args
- Lenny said if `splitUnnamedArgument` is enabled, the callback should always receive an array.
- It is intended that if no value was provided, it'll get an array with an empty string. Because.. if no argument was provided for a non-split arg, it'll receive an empty string too.
2024-09-30 20:22:44 +02:00
Wolfsblvt 1c65a5badd Update /ask toasts to warnings for consistency 2024-09-30 18:38:17 +02:00
Wolfsblvt 1128de91f4 /send with return value too
- /send
- return message on `sendMessageAsUser` now
2024-09-30 18:32:21 +02:00
Wolfsblvt 0ab74f0819 Update return values of send commands
- /sendas
- /sys
- /comment
2024-09-30 18:30:09 +02:00
Wolfsblvt 5952c35402 Refactor if checks on /sendas 2024-09-30 18:13:13 +02:00
Cohee dedb96ec8d Don't trim on whitespace user prefix sequence 2024-09-30 15:05:15 +00:00
DarokCx 5f5f9e34ea added gridview 2024-09-30 09:08:00 -04:00
RossAscends 8cb4aa6a49 whoopsie daisey 2024-09-30 22:00:38 +09:00
RossAscends da161b9628 Merge branch 'staging' of https://github.com/Cohee1207/SillyTavern into staging 2024-09-30 21:49:41 +09:00
RossAscends 020741d78b make AF panel toggles red and opaque when disabled 2024-09-30 21:49:39 +09:00
RossAscends e9e459be14 make sure old swipe counters are shown after new message added 2024-09-30 21:29:24 +09:00
RossAscends 1a0b49d5dc fix weird counter text in group chats 2024-09-30 21:19:39 +09:00
RossAscends 885a278973 split counter from chevron, smarter toggling 2024-09-30 19:51:13 +09:00
Cohee 8061f45368 RossMods: Debounce online status display 2024-09-29 19:13:19 +03:00
Cohee 2f43c8e227 Fix /ask in neutral chats 2024-09-29 19:12:26 +03:00
Wolfsblvt 314771fd9a Fix /sendas wrong name being used 2024-09-29 17:32:18 +02:00
Wolfsblvt 7c2fcbc522 Fix non-provided name not correctly preferring cur 2024-09-29 17:00:28 +02:00
Cohee 9f0c2300d2 Add connection map aliases 2024-09-29 16:24:40 +03:00
RossAscends 3614740f4e remove gaudy console log 2024-09-29 21:53:06 +09:00
RossAscends 034a5a48c2 initial commit, functional, needs proofing 2024-09-29 21:47:18 +09:00
Wolfsblvt 8e445c75ae Fix bug with undefined char on empty chats 2024-09-29 13:38:15 +02:00
Cohee 57bbd349a0 Merge branch 'staging' into char-find-and-sendas-extended 2024-09-29 13:37:09 +03:00
Cohee 53424d4c8e
Merge pull request #2917 from SillyTavern/st-parser-accept-multiple-named
STscript allow named arguments to be an array
2024-09-29 13:36:33 +03:00
Cohee c3d5fba598 Support multiple in /setpromptentry 2024-09-29 12:48:40 +03:00
Wolfsblvt cc527a3a33 Correct async calls to init scrapers 2024-09-29 11:27:07 +02:00
Wolfsblvt ab83138b1e missing closing tag 2024-09-29 11:02:54 +02:00
Wolfsblvt 44c8d45957 missing import 2024-09-29 04:02:00 +02:00
Wolfsblvt d7bad6335c Refactor findChar to utils
- Refactor and move finChar to utils, instead of slashcommands function
- Refactor scrapers to use actual init functionality
2024-09-29 03:20:01 +02:00
Wolfsblvt edcf52e3a8 Update more commands for new char find
- Update /member-add to utilize new char find functionality
- Update /tag-add, /tag-remove, /tag-exists and /tag-list to utilize new char find functionality
. Update /lastsprite to utilize new char find functionality
2024-09-29 02:54:12 +02:00
Wolfsblvt 145023ba8d Update existing slash commands to findChar
- Update /gen to utilize new char find functionality
- Update /go to utilize new char find functionality
- Update /delname to utilize new char find functionality
- Change /send persona search to equalsIgnoreCaseAndAccents
2024-09-29 02:36:33 +02:00
Wolfsblvt d6e52dbb97 Update /ask with new char find functionality 2024-09-29 02:14:06 +02:00
Wolfsblvt ca009dee59 Respect tags for current char(s) selection
- Respect tags for prefer current char(s)
- Fix preferCurrentChar not being true by default
2024-09-29 01:17:13 +02:00
Wolfsblvt 5a0e70e8fa Add "quiet" to /char-find 2024-09-29 00:55:41 +02:00
Wolfsblvt 231ea98b25 Update /sendas to work with findChar 2024-09-29 00:53:43 +02:00
Carsten Kragelund 4966fb65f7 fix: add assistant_prefill to request if people are using non prefill based continues 2024-09-28 22:46:23 +00:00
Wolfsblvt 5295c4c023 Merge branch 'staging' into char-find-and-sendas-extended 2024-09-29 00:41:34 +02:00
Carsten Kragelund aae934a849 fix: move prefill continuation handling to populateChatHistory 2024-09-28 22:37:16 +00:00
Wolfsblvt 0be48c567a /char-find command to get a specific unique char
- findChar utility function that does the heavy lifting of finding a specific char based on conditions
- Log/warn if multiple characters match
- Validation function for named args that should be arrays
2024-09-29 00:36:13 +02:00
Cohee 14b48c5b34 Add warning for trim spaces disabled 2024-09-29 01:28:02 +03:00
Cohee 42cfeae8ab Adjust WI headers 2024-09-29 01:17:22 +03:00
Cohee c37a83836a Arrows on selects always visible 2024-09-29 01:17:15 +03:00
Wolfsblvt 898c6471c4 Fix WI Entry Status tooltip, no disabled anymore 2024-09-29 00:03:34 +02:00
Cohee 5d60897cfa Fix drawer icon not changing on WI 2024-09-29 01:00:56 +03:00
Wolfsblvt 20a82fb242 Merge branch 'st-parser-accept-multiple-named' into char-find-and-sendas-extended 2024-09-28 22:40:22 +02:00
Wolfsblvt 22d8a654d9 Allow searching on /sendas via tag= 2024-09-28 22:22:44 +02:00
Wolfsblvt 4594353c72 Add avatar= to /sendas to allow avatar override 2024-09-28 22:22:44 +02:00
Wolfsblvt d8e57c507f Allow case-insensitive name search 2024-09-28 22:22:44 +02:00
Wolfsblvt 6714bb8c15 Prefer current char if multiple have the same name
- Match against current chat character first
- Also removed avatar-key matching, it was broken
2024-09-28 22:22:44 +02:00
Wolfsblvt d231b7f5f4 "acceptsMultiple" should always return array 2024-09-28 22:14:33 +02:00
Wolfsblvt 2444e9be43 STscript allow named arguments to be an array
- Use named args definition and "acceptsMultiple" to build arrays of values, if provided
- Add a debug warning if non-multiple named args are provided multiple times
2024-09-28 21:59:29 +02:00
Yokayo 9041eb8081
Remove debug stuff 2024-09-28 21:54:44 +07:00
Yokayo 78a287e7f5 Resolve conflict 2024-09-28 21:31:13 +07:00
Yokayo bb76649478 Update tl 2024-09-28 20:47:37 +07:00
Cohee ac1bc95551 Xtra Type Cafety 2024-09-28 13:59:03 +03:00
Cohee b1bb41313f Insert missing ooba samplers 2024-09-28 13:56:57 +03:00
Cohee 8bd1c88d15 Enable XTC 2024-09-28 13:52:55 +03:00
Cohee e59dacc27f Merge branch 'staging' into xtc-ooba 2024-09-28 13:49:49 +03:00
Cohee 5fa574b851 Alt.greetings br0ke 2024-09-28 02:03:11 +03:00
Cohee eaefcaa6bc Fix QR editor sizing 2024-09-28 01:00:07 +03:00
Cohee 3b27c90a19 Don't allow empty stop strings 2024-09-27 21:08:28 +03:00
Cohee 00e48097e5 Mark provider unofficial in the list 2024-09-27 20:34:21 +03:00
Cohee 43c3943287 Merge branch 'staging' into GPT-SoVITS-V2 2024-09-27 20:29:22 +03:00
Cohee 84c04f0354 Mark provider unofficial in the list 2024-09-27 20:27:51 +03:00
Cohee d7d204f2ab Merge branch 'staging' into CosyVoice 2024-09-27 20:26:32 +03:00
Cohee 53dc8702c3 Add early return for movingDivs click handler 2024-09-27 20:25:09 +03:00
DarokCx bebd0e438b new search bar for featherless 2024-09-27 13:16:27 -04:00
Cohee 061ed1db65 Improve gallery layout
Closes #2907
2024-09-27 08:02:08 +00:00
Cohee 735fe49a84 Fix magic wand 2024-09-27 09:41:59 +03:00
Cohee ff56cb9c2e
Merge pull request #2903 from SillyTavern/extensions-slash-commands
Slash commands to manage Extensions
2024-09-27 01:23:07 +03:00
Cohee 0fd57a4c1c Returns doesn't support HTML, ditto 2024-09-27 01:19:45 +03:00
Cohee cf2c9a8296 Returns doesn't support HTML 2024-09-27 01:13:44 +03:00
Cohee eccf253afd Show Included settings in view order 2024-09-27 01:01:49 +03:00
Cohee 50fd3a2028 Remove new class 2024-09-27 00:46:03 +03:00
Cohee 4167fe3d2b Add Save and Update 2024-09-27 00:44:58 +03:00
Cohee 3b1435ba77 Merge branch 'staging' into connection-profile-omit 2024-09-27 00:20:47 +03:00
Cohee b025765a1e
Merge pull request #2891 from SillyTavern/if-command-default-arguments
`/if` and `/while` now allow "right" and "rule" to be optional
2024-09-27 00:04:41 +03:00
Cohee 75308bfe7f
Alt greetings restyle (#2902)
* Slight QoL restyle of alternate greetings
* Update to new popup
* Add visible labels to buttons
2024-09-26 23:56:38 +03:00
Cohee 38660df93f /model: fix not working on Novel/Horde 2024-09-26 23:46:03 +03:00
Cohee dbca950aad Add margin from all sides 2024-09-26 23:40:44 +03:00
Cohee 7c4d8b8d7a Fix a bug with splice 2024-09-26 23:36:38 +03:00
Cohee bb82198496 Place omitted on a separate line 2024-09-26 23:34:42 +03:00
Cohee d8806060a7 Use compact template syntax 2024-09-26 23:34:03 +03:00
Cohee 8083431202 Merge branch 'staging' into connection-profile-omit 2024-09-26 23:27:54 +03:00
Cohee 3a03e1a6b2 NovelAI: More newline stop string permutations 2024-09-26 23:26:42 +03:00
Cohee 917c6f25bd Merge branch 'release' into staging 2024-09-26 12:56:34 +00:00
Cohee 4c159dfb50 Hotfix: Chrome 129 wide popup sizing 2024-09-26 12:56:19 +00:00
Cohee e6d5b5a8a1 Limit NAI stop sequences count 2024-09-26 07:58:26 +00:00
Cohee c4462cc8bb Add Erato preamble token 2024-09-26 07:56:32 +00:00
刘悦 9c6352fcae
Update gpt-sovits-v2.js
add (Unofficial) label
2024-09-26 15:20:29 +08:00
刘悦 d8935be5e5
Update cosyvoice.js
add Unofficial label
2024-09-26 15:17:28 +08:00