RossAscends
210caace4a
Merge branch 'staging' of https://github.com/Cohee1207/SillyTavern into staging
2024-04-19 21:02:05 +09:00
RossAscends
db3d86cb29
optimize slash command helper popup
2024-04-19 21:02:02 +09:00
Cohee
4a5d952800
Fix script comments. Add type hints
2024-04-19 14:19:57 +03:00
Cohee
41a4de7224
Limit slash autocomplete
2024-04-19 13:35:36 +03:00
Cohee
306bff0a92
#2085 Switch to async token counters
2024-04-13 21:33:19 +03:00
ThisIsPIRI
208e089761
Replace hideChatMessage with hideChatMessageRange
2024-04-12 16:03:50 +09:00
RossAscends
94f14340ae
add background image name reporting for /bg with no args
2024-04-12 08:21:17 +09:00
Cohee
27698fd024
Add ability to get model name with /model
2024-04-03 00:52:30 +03:00
Cohee
9838ba8044
#1994 Add Cohere as a Chat Completion source
2024-04-02 00:20:17 +03:00
Cohee
3331cb6491
Add ability to temporarily override response length for /gen and /genraw
2024-03-31 21:02:38 +03:00
Cohee
ad4269f476
Add system prompt to /genraw command
2024-03-31 19:42:12 +03:00
Cohee
bd62c2fb70
Add 'as' argument for /gen command
2024-03-30 18:13:55 +02:00
Cohee
fcdd90cec4
Adjust last prompt line of quite gens
2024-03-28 21:51:02 +02:00
Cohee
0bf6835de2
Add "compact" argument to message sending commands.
2024-03-27 19:40:34 +02:00
Cohee
6d02223bd4
Fix cases with persona autoswitch
2024-03-27 15:16:20 +02:00
LenAnderson
78ba88f94f
set active character / active group in /go command
2024-03-26 12:21:22 -04:00
Cohee
5e8999cc43
Add comments to STscript
2024-03-25 14:22:39 +02:00
Cohee
848af1fd4b
Add inject roles to slash command
2024-03-23 18:44:40 +02:00
Cohee
cda7ab0530
Add /model command
2024-03-15 16:08:22 +02:00
Cohee
bb53fef531
Clean-up docs and leftover logs
2024-03-06 23:10:52 +02:00
Cohee
9a6824f86c
Merge pull request #1886 from parsedone/patch-2
...
Fixes [BUG] STscript parser() incorrectly manages spaces
2024-03-06 23:04:10 +02:00
Cohee
975206fd06
Clean-up /fuzzy command doc comments
2024-03-03 16:04:48 +02:00
parsedone
d217a4e32f
Fixes [BUG] STscript SlashCommandParser.parser() incorrectly manages spaces
...
Fixes bug SillyTavern#1884
Parses a command even when spaces are present in arguments
Examples that now work:
/buttons labels=["OK","I do not accept"] some text /fuzzy list=[ "red pink" , "yellow" ] threshold=" 0.6 " he yelled when the color was reddish and not pink | /echo
2024-03-03 04:09:58 +01:00
parsedone
88f42132c2
Update slash-commands.js [BUG] STscript /fuzzy returning wrong answer
...
Implements fix of the bug #1883 "[BUG] STscript /fuzzy returning wrong answer".
Fix the params so tha /fuzzy detect when a "candidate" item is found (using fuzzy matching) in the text passed without argument name.
Also added optional "threshold" that allows to change the value used by Fuse in order to have stricter or looselier matching.
Also updated the parser.addCommand('fuzzy', fuzzyCallback
2024-03-03 03:43:44 +01:00
Cohee
f0141b4dd1
Update slash-commands.js
2024-02-20 16:57:00 +02:00
Sneha C
095cd873de
Update slash-commands.js
...
added the word "persona" to the /sync description to make it easier for users to find.
2024-02-20 16:48:43 +04:00
Cohee
8e66a14e37
Add hints to doc strings about additional command prompts
2024-02-20 02:29:14 +02:00
Wolfsblvt
550d8483cc
Extend impersonate/continue/regenerate with possible custom prompts
...
- Use custom prompt provided via slash command arguments (similar to /sysgen and others)
- Use written text from textbox, if the popout menu actions are clicked
2024-02-19 22:23:58 +01:00
Cohee
29b971a986
Merge branch 'staging' into slash-fix-bleed
2024-02-16 20:48:32 +02:00
Cohee
a8cd6c9fe7
Allow finding characters in slash commands by exact PNG name
2024-02-16 20:24:47 +02:00
LenAnderson
cab6f90519
stop named args from nested commands bleeding into parent
2024-02-09 22:49:38 +00:00
Cohee
44a3bb8ec7
#1777 Add await argument to /trigger command
2024-02-08 00:20:36 +02:00
Cohee
07677584c4
#1781 Fix /len and unescape for non-string arguments
2024-02-03 02:06:49 +02:00
LenAnderson
2cdf928fc7
unescape args before calling callback
2024-01-26 18:58:44 +00:00
Cohee
1647e5ae49
Merge pull request #1734 from khanonnie/alternative-tokens
...
Implement Token Probabilities UI panel using logprobs
2024-01-26 03:39:25 +02:00
khanon
60044c18a4
Implement Token Probabilities UI using logprobs
2024-01-25 18:34:46 -06:00
Cohee
6ff998816d
#1728 Missed one
2024-01-25 03:28:30 +02:00
Cohee
55984a59bb
#1728 Allow zeros in {{pipe}} macro
2024-01-24 21:19:29 +02:00
Cohee
4fe13fab8e
Customizable /gen instruct name
2024-01-12 19:16:42 +02:00
Cohee
d5e3f5491d
Fix formatting
2024-01-05 20:12:59 +02:00
LenAnderson
1b86ded198
add group support to /go
2024-01-05 18:02:44 +00:00
LenAnderson
03b80900d6
add optional named arguments to /run command
2023-12-27 12:28:15 +00:00
Cohee
a85a6cf606
Allow displaying unreferenced macro in message texts
2023-12-21 20:49:03 +02:00
Cohee
029cf598ce
Fix /peek command
2023-12-19 23:12:14 +02:00
Cohee
f249ff8b20
Fix slash commands for offscreen group members
2023-12-18 01:39:37 +02:00
LenAnderson
69f90a0b30
add /tokens slash command to call getTokenCount
2023-12-11 22:51:07 +00:00
Cohee
6f610204d6
Merge pull request #1488 from LenAnderson/add-index-argument-to-setvar-/-setglobalvar
...
Add index argument to setvar / setglobalvar
2023-12-08 00:40:14 +02:00
Cohee
2607e787ff
Put comment command on hold
2023-12-08 00:38:13 +02:00
Cohee
e2f886d796
Revert pipe caching
2023-12-08 00:33:27 +02:00
LenAnderson
65f2cc1952
add a comment slash commend /#
...
for commenting longer ST scripts
2023-12-07 18:29:28 +00:00
LenAnderson
d52b5fb947
pass prev pipeResult through if result undefined
2023-12-07 18:28:58 +00:00
Cohee
e804f27368
Convert value to string for echo. Fix return value
2023-12-07 19:37:55 +02:00
Cohee
75abc6101a
/input input => /input default
2023-12-07 13:44:49 +02:00
Cohee
0e6802c9d9
Too much lint
2023-12-07 13:35:48 +02:00
SrJuggernaut
d6d0371459
add missing args to some slash commands
2023-12-06 19:26:29 -06:00
Cohee
6e09e45651
Fix /trigger and /continue auto-execution
2023-12-02 22:34:46 +02:00
Cohee
64a3564892
lint: Comma dangle
2023-12-02 22:06:57 +02:00
Cohee
c63cd87cc0
lint: Require semicolons
2023-12-02 21:11:06 +02:00
Cohee
9faa1e34b0
Merge branch 'staging' into singlequote
2023-12-02 20:43:41 +02:00
Cohee
a28c23d295
Wait for generation unlock before running continue or trigger
2023-12-02 20:12:36 +02:00
valadaptive
a37f874e38
Require single quotes
2023-12-02 13:04:51 -05:00
valadaptive
c893e2165e
Enable no-prototype-builtins lint
2023-12-02 12:10:31 -05:00
valadaptive
9204a31d32
Enable no-self-assign lint
2023-12-02 10:32:07 -05:00
Cohee
b0d21659eb
/inject command to add prompt injections
2023-11-28 01:44:13 +02:00
Cohee
188897a3df
Add "at" argument to commands sending a message
2023-11-27 19:48:49 +02:00
Cohee
edafb8dd13
Repurpose trigger command not just for groups
2023-11-27 11:16:40 +02:00
Cohee
fd0edd67a6
Fix recursive QR auto-execution
2023-11-27 02:18:36 +02:00
Cohee
9c01a849cb
Add buttons command
2023-11-26 17:05:55 +02:00
Cohee
3bc91f10ec
Fix command aliases
2023-11-26 15:47:11 +02:00
Cohee
e6c96553d0
Add text trimming commands
2023-11-26 13:55:22 +02:00
Cohee
c259c0a72a
Skip hidden messages from /message command
2023-11-26 01:15:19 +02:00
Cohee
c6aea00e27
Resolve ephemeral stop strings variables
2023-11-26 00:56:55 +02:00
Cohee
b8d7b0922d
Fix evaluation order of named args
2023-11-25 18:18:57 +02:00
Cohee
06ade803fa
Concatenate strings in /addvar
2023-11-25 17:45:40 +02:00
Cohee
851a00630a
Add /popup command
2023-11-24 19:50:49 +02:00
Cohee
a178bdc3b0
Fix ephemeral stopping strings flush
2023-11-24 19:06:31 +02:00
Cohee
2c8e855385
Resolve variables in /fuzzy
2023-11-24 17:41:49 +02:00
Cohee
adb3badcc1
Add /messages and /setinput commands
2023-11-24 17:12:59 +02:00
Cohee
c9b3ccc585
Add STscript procedure calls with /run command
2023-11-24 15:58:00 +02:00
Cohee
dd17c2483f
Add lock=on/off to /gen and /genraw commands
2023-11-24 15:18:49 +02:00
Cohee
ad8709842b
STscript improvements (see below)
...
Add /while loop
Add escaping of macros in sub-commands
Add /input prompt
2023-11-24 12:49:14 +02:00
Cohee
d3ea5c081d
Add /pass and /fuzzy commands
2023-11-24 02:21:50 +02:00
Cohee
74fbc88d7d
Move macros replacement to script execution time
2023-11-24 01:56:43 +02:00
Cohee
c4e1fff1bc
Respect # limit for ephemeral stop strings
2023-11-24 00:54:23 +02:00
Cohee
863554fea6
Add ephemeral stop strings to /genraw
2023-11-24 00:51:27 +02:00
Cohee
c2e3bfa06d
/genraw instruct=off
2023-11-24 00:36:35 +02:00
Cohee
c50ed4bf6a
STscript improvements (see below)
...
/abort command, {{pipe}} macro in named args, subcommand batch escaping with backslash, string literals and rules for /if, else clause for /if
2023-11-24 00:18:07 +02:00
Cohee
3594c4aac7
Add {{newline}} and {{pipe}} macros
2023-11-23 22:56:52 +02:00
Cohee
86819b6f4f
Add /genraw command
2023-11-23 22:50:13 +02:00
Cohee
6d0982e823
Unleash the variables / STscript alpha
2023-11-23 22:36:48 +02:00
Cohee
55af72cb17
/addswipe command
2023-11-22 01:26:17 +02:00
Cohee
e5f7b0b5c7
Use explicit unnamed argument first if exists
2023-11-22 00:43:33 +02:00
Cohee
4b78ddbc8a
First steps in slash command piping
2023-11-22 00:39:17 +02:00
Cohee
1b4d955aec
Add swipe id validation for /delswipe
2023-11-21 23:33:20 +02:00
Cohee
284bd76589
Add /delswipe command
2023-11-21 23:28:11 +02:00
Cohee
2dc8f8f2f7
Add 5 group control commands
2023-11-21 22:35:59 +02:00
Cohee
01b629bd49
New syntax for sendas command
2023-11-21 02:54:04 +02:00
Cohee
4222b2aa21
Add enable/disable group member commands
2023-11-20 23:49:04 +02:00
Cohee
7045d242e8
Add ability to attach files and images to messages
2023-11-18 19:24:55 +02:00
Cohee
ea583e0ff5
Add fuzzy search to /bg command
2023-11-14 21:43:08 +02:00
Cohee
abb8b0f0cc
Update hide / unhide commands to accept range
2023-11-14 21:37:37 +02:00
Cohee
a02504381a
Forbid trigger command while the group is generating
2023-11-11 16:12:02 +02:00
Cohee
f2a96427a8
TTS: add slash command to speak
2023-11-09 02:57:40 +02:00
Cohee
8183849fe4
Add more aliases for /help pages
2023-11-04 21:35:50 +02:00
Cohee
e1e472bf79
Add {{lastMessageId}} macro, make async slash command handlers wait for completion
2023-11-04 13:33:09 +02:00
Cohee
b3669afea3
Put /help command on top
2023-11-04 12:37:13 +02:00
Cohee
6067b2f913
Add autocomplete for slash commands
2023-11-04 01:21:20 +02:00
Cohee
eab25c73e7
Hide/unhide messages
2023-11-03 23:45:56 +02:00
Cohee
99e6ee2d4d
Slash command to trigger group member response
2023-10-29 19:35:26 +02:00
kingbri
dfa25a1796
Commands: Add ask command
...
The ask command aims to ask another character about a question or
topic from the current chat. Essentially, the current chat is taken
out and prompted to another character.
This command also requires a few fixes to sprites and prompt creation.
Signed-off-by: kingbri <bdashore3@proton.me>
2023-10-16 02:12:12 -04:00
RossAscends
e29902ed66
'/help slash' hint for how to batch slash commands
2023-10-09 08:22:00 +09:00
SDS
5848ec498b
Assorted fixes and improvements ( #1208 )
...
* Kobold Presets fixed
* Help texts fixed
* Scale API for connectAPISlash
* Quick Reply checkboxes fixed
* New Instruct Mode Presets
* More date/time macros
* ChatML context template and instruct prompt format
* Mistral context template and instruct prompt format
* Removed use_default_badwordsids from kobold presets
* Renamed ChatML to Mistral-OpenOrca (ChatML)
* Renamed Mistral-OpenOrca (removed ChatML)
* Removed single_line from kobold presets
* Removed obsolete use_stop_sequence setting
* Ban EOS Token off by default
* Split AI Resp. Conf. in global and preset-specific settings
* Resolve conflicts
* Fix title
* Add translations for new help texts
* Fix i18n.json whitespace
* Make Mistral-OpenOrca system prompt more generic
* Renamed "Mistral-OpenOrca" to "ChatML" again
* More (UI) fixes and improvements
* Sendas hint fixed
---------
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2023-10-07 19:25:36 +03:00
RossAscends
345a0e04fc
Add '/nar' as alias for /sys
2023-10-02 09:28:25 +09:00
city-unit
0033090a93
Idle Response / Continuous Generation ( #1132 )
...
* Initial idle stuff
* Much closer, can now quietly send as user to get a char response.
* Tweaks
* Better, reset the count of getting a message back, don't send while prompt is waiting.
* Allow selecting who is being prompted
* Comments and cleaup
* Remove char name for the moment (needs something here probably)
* Add random time period and "Always add character's name to prompt" respect
* Tooltips
* Load/unload listeners
* Reduce log spam
* Add inline prompt inclusion
* Add full loud prompting
* Comments
* Fix instruct newline (I think)
* Don't reset count on continue
* add quietToLoud for script.js
* add quietToLoud for slashcommands.js
* Keep instruct directives
* Removed some logging, don't do the Novel formatting if Q2L
* Logspam begone.
* Removed a bit more logging
* Add alignment style
* Reformat files. Add comments
* Reorder extensions
* Fix repeat logic to prompt once then only repeat the number specified
* Make repeat count more clear
---------
Co-authored-by: RossAscends <124905043+RossAscends@users.noreply.github.com>
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2023-09-17 22:00:10 +03:00
Cohee
6dd09858d4
Don't remove names from the past chat. Fix non-streaming auto-continue.
...
We took fair criticism from the NovelAI dev.
2023-09-15 23:32:01 +03:00
Cohee
030424d034
Add char to persona converter. Move persona functions to a separate script file
2023-08-29 01:54:11 +03:00
Stefan Daniel Schwarz
b9a95d94a0
Force isSystem = false on comment messages so they get formatted properly
2023-08-26 19:26:23 +02:00
Stefan Daniel Schwarz
dd7b89aef6
comment message formatting
2023-08-26 17:50:54 +02:00
Cohee
e77da62b85
Add padding to cache key. Fix Safari display issues. Fix 400 on empty translate. Reset bias cache on changing model.
2023-08-23 10:32:48 +03:00
Cohee
fd95b79ae9
Fix auto-translate plugin. Add new event types for post-rendering
2023-08-22 22:45:12 +03:00
Cohee
ea4d4a8fd6
Fix system messages using incorrect timezone
2023-08-22 18:13:03 +03:00
Cohee
41cc86af9f
Add example extension for chat variables. Allow registering custom text processing functions for extensions
2023-08-22 17:46:37 +03:00
Cohee1207
c124fc589f
Fix display help links
2023-08-07 22:21:10 +03:00
Cohee
5c66c34414
#778 Slash command to add a persona message without generation
2023-07-26 21:00:36 +03:00
Cohee
260bb0af52
Fix opening character with id = '0' in /go and /random commands
2023-07-24 17:22:51 +03:00
Cohee
edd41989fd
Initial commit
2023-07-20 20:32:15 +03:00