Cohee
247048ebfa
Use boolean selector
2024-01-07 18:58:30 +02:00
LenAnderson
49483e2e21
add optional arguments to /world command
...
- deactivate a single world
- toggle a world
- suppress toast messages
2024-01-07 11:36:44 +00:00
LenAnderson
9e34804ab0
add option on WI entries to prevent further recursion
2024-01-07 10:51:13 +00:00
Cohee
a69f92444b
Add AND ALL logic for WI secondary keys
2024-01-01 21:49:54 +02:00
LenAnderson
8cd75cf03d
add event when world info is updated
2024-01-01 14:34:09 +00:00
Cohee
6c16b94f9d
Merge pull request #1540 from valadaptive/refactor-device-check
...
Refactor mobile device check
2023-12-15 17:01:32 +02:00
valadaptive
fbdfa05f81
Replace usage of getDeviceInfo with isMobile
...
We were using getDeviceInfo to check whether we were on a desktop or a
mobile device. This can be done more simply with isMobile, which means
we can stop exporting getDeviceInfo.
2023-12-14 18:37:54 -05:00
valadaptive
769cc0a78f
Rename settings API endpoints
2023-12-14 16:47:03 -05:00
Cohee
1b11ddc26a
Add vector storage to WI scanning
2023-12-11 22:47:26 +02:00
Cohee
c84b6a5101
Add WI inclusion groups
2023-12-07 20:06:06 +02:00
Cohee
b1f68d886c
Fix WI field access for UID = 0
2023-12-07 18:45:34 +02:00
valadaptive
c746e6a426
Rename worldinfo API endpoints
2023-12-06 20:00:51 -05:00
Cohee
c9fbe75566
Rename WI logic ONE => ANY
2023-12-05 12:04:27 +02:00
Bronya Rand
537e9428e0
proper revert cuz vsc revert weird...
2023-12-05 03:00:26 -06:00
Bronya Rand
f9ecc77b10
revert changes after cohee fix
2023-12-05 02:56:52 -06:00
Bronya Rand
a90fe54e5b
bak should not be here
2023-12-04 16:05:05 -06:00
Bronya Rand
f71b83b14f
add comment on new code and add () for logic checks
2023-12-04 16:00:02 -06:00
Bronya Rand
085daaeff7
simplify and proper NOT check fix
2023-12-04 15:57:04 -06:00
Cohee
8bf18891b3
Add data model field for WI entry group
2023-12-04 18:47:35 +02:00
Cohee
64a3564892
lint: Comma dangle
2023-12-02 22:06:57 +02:00
Cohee
08fedf3a96
lint: Use 4 space indent
2023-12-02 21:56:16 +02:00
Cohee
c63cd87cc0
lint: Require semicolons
2023-12-02 21:11:06 +02:00
valadaptive
a37f874e38
Require single quotes
2023-12-02 13:04:51 -05:00
valadaptive
518bb58d5a
Enable no-unused-vars lint
...
This is the big one. Probably needs thorough review to make sure I
didn't accidentally remove any setInterval or fetch calls.
2023-12-02 12:11:19 -05:00
valadaptive
c893e2165e
Enable no-prototype-builtins lint
2023-12-02 12:10:31 -05:00
valadaptive
97c49a405b
Enable no-extra-boolean-cast lint
2023-12-02 10:32:26 -05:00
valadaptive
27e63a7a77
Enable no-case-declarations lint
2023-12-02 10:32:26 -05:00
valadaptive
7c3dd75e6a
Enable no-fallthrough lint
2023-12-02 10:32:07 -05:00
Cohee
9ad42025e5
Add depth to entry template
2023-12-01 22:09:13 +02:00
Cohee
07962e0e4e
Add /setentryfield command
2023-12-01 21:51:49 +02:00
Cohee
fae90f8227
Add validation messages
2023-12-01 02:25:55 +02:00
Cohee
27d27127e0
Fix docstring typo
2023-12-01 02:11:47 +02:00
Cohee
fe355c5d4f
Add MVP set of WI manipulation commands
2023-12-01 01:50:10 +02:00
RossAscends
3ec692e76c
fix /world unsetting function
2023-11-26 05:26:41 +09:00
nonenothingnada
bca21ec9b6
Bugfix: World Info - NOT operator only considers first secondary key
...
Small fix to correct the behavior of the World Info NOT operator with a list of secondary keys to what was (hopefully) intended. Previously only the first secondary key was ever checked. Now each primary key should be checked against each secondary key with a single match invalidating the entry activation.
2023-11-15 12:11:09 +01:00
Cohee
f24aae546c
Filter WI entries by tags
2023-11-14 23:54:08 +02:00
Cohee
0d4e5c31e2
Code clean-up
2023-11-12 22:35:17 +02:00
Cohee
5d34c8aef5
Merge branch 'staging' of https://github.com/SillyTavern/SillyTavern into staging
2023-11-11 21:53:15 +02:00
Cohee
10264367aa
WI editor visual QoL
2023-11-11 21:53:11 +02:00
Cohee
25b549b034
WI custom order (slight return)
2023-11-11 20:16:57 +02:00
Cohee
2d3fb08638
Add filter for missing WI entries
2023-11-04 20:02:38 +02:00
Cohee
890ae4bba9
Optimize WI layout
2023-11-04 17:44:43 +02:00
Aisu Wata
3eaff02c2f
World Info Min Activations: min max depth default unlimited
2023-11-01 14:36:20 -03:00
Aisu Wata
77bde48a48
World Info Min Activations: added UI & persistence & budget respect
2023-11-01 14:02:38 -03:00
Aisu Wata
8203ebb835
world_info_min_activations
2023-10-30 18:55:32 -03:00
Cohee
922007ea25
#1294 Fix selective logic for embedded lorebooks
2023-10-28 12:28:03 +03:00
RossAscends
b29f63f89e
fix WI sliders
2023-10-27 03:01:25 +09:00
Cohee
5cdc3d1d18
Smudge groups depth prompts in Join mode.
2023-10-26 00:39:11 +03:00
Cohee
77f0fe5b80
Fix event typing
2023-10-17 13:55:02 +03:00
valden80
81f1bfd23f
Update world-info.js (revert personal new WI pos preference)
2023-10-17 03:15:18 +03:00
valden80
819b92a1d5
Force open Char WI with Shift
...
QoL - Force open character WI selector menu if icon clicked with Shift.
2023-10-17 03:10:57 +03:00
Cohee
eaadb1c5c2
Prevent double insert of chat lore
2023-10-16 23:13:32 +03:00
Cohee
6a1b230c7e
#1226 Add chat-bound lorebooks
2023-10-16 23:03:42 +03:00
kingbri
2c1a6ca67c
World Info: Add scanning with AN
...
Add support for adding extension prompts into WI scanning. Doing this
required adding a method to get extension prompts by name. Now, AN
and depth prompts can be added to world info scanning.
However, since scanning just looks for keys in the chatlog, append
the extension prompts on the top of scanned text.
Signed-off-by: kingbri <bdashore3@proton.me>
2023-10-11 23:50:58 -04:00
Cohee
2c54627926
Format code
2023-10-10 20:48:21 +03:00
ThisIsPIRI
3eb8f56b00
Add option to use the old embedded WI toast
2023-10-11 00:08:08 +09:00
RossAscends
1c095415a4
fix WI panel display on autoimport char lorebooks.
2023-10-08 23:04:53 +09:00
RossAscends
19acc05516
subsort WI Depth sort by Order to match prompt loc
2023-10-08 20:12:14 +09:00
Cohee
2cbde8b55c
#1221 Button to refresh WI sorts
2023-10-08 12:30:12 +03: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
Cohee
32377fd131
Unhide constant WI probability
2023-10-06 18:47:03 +03:00
Cohee
27ce0b5eb7
Stabilize WI sorting order
2023-10-06 01:18:50 +03:00
RossAscends
4189da19b1
Merge branch 'staging' of https://github.com/Cohee1207/SillyTavern into staging
2023-10-06 05:56:47 +09:00
RossAscends
ad3f8e7bf4
Merge branch 'staging' of https://github.com/Cohee1207/SillyTavern into staging
2023-10-06 05:56:45 +09:00
Cohee
0dfe46a162
Add WI title backfill button
2023-10-05 23:56:31 +03:00
RossAscends
edeb804128
fix WI Entry control titles for mobile
2023-10-06 05:55:39 +09:00
Cohee
b49f234185
Merge branch 'staging' of https://github.com/SillyTavern/SillyTavern into staging
2023-10-05 23:30:23 +03:00
Cohee
85a63b3bb3
Add WI entry sorting. Add new entry flash
2023-10-05 23:30:18 +03:00
RossAscends
eaa33f2544
WI Entry titles on left, controls on right.
2023-10-06 03:40:39 +09:00
RossAscends
5307ee5d17
WI: Prob%, Memo to header, Keywords to main
2023-10-06 03:02:43 +09:00
RossAscends
30e5a31591
Position, Depth, Order Inputs to WI Entry header
2023-10-05 23:40:48 +09:00
Cohee
99a89a7329
Less discrete embedded lorebook prompt
2023-10-04 22:41:10 +03:00
RossAscends
7771ecb0d0
WI disable/constant checkboxes to tristate select
2023-10-01 10:21:19 +09:00
RossAscends
f466ff3243
update WI Pos/Depth/Order hint on value change
2023-09-29 00:27:12 +09:00
Brian Dashore
bfda5a5492
Extra fixes ( #1185 )
2023-09-26 09:53:04 +03:00
Cohee
01f14b461f
Fix embedded lorebook depths
2023-09-25 20:11:16 +03:00
RossAscends
e2d4f9dc8c
streamline WI display
2023-09-25 18:03:10 +09:00
Cohee
1838ca1994
Replace magic numbers with named constants
2023-09-24 14:45:04 +03:00
Brian Dashore
2411006fdb
World Info: Add insertion order at depth ( #1174 )
...
Depth previously injected entries randomly. This is not ideal for
world info architectures that rely on insertion order to function
properly.
Redo depth injection to have its own parameter and redo how it's
handled in generate.
Signed-off-by: kingbri <bdashore3@proton.me>
2023-09-24 14:41:56 +03:00
Brian Dashore
5421925d6c
Add character specific locks for WI and LB ( #1170 )
...
* World Info: Add character locking for entries
With the addition of depth, world info has become more important than
ever. However, there is a conflict that can occur when using multiple
world info or lorebooks on a character. Add the ability to lock
entries to a specific character (or characters) if needed.
This allows for adequate separation especially when there are character
cards each with their separate lorebooks that build off of a core lorebook.
Signed-off-by: kingbri <bdashore3@proton.me>
* World Info: Add entry-specific character exclusions
This is the opposite of locking an entry to a specific character.
Exclusions allows the entry to get included for everyone except the
specified characters in the list.
Signed-off-by: kingbri <bdashore3@proton.me>
---------
Signed-off-by: kingbri <bdashore3@proton.me>
2023-09-23 22:35:51 +03:00
RossAscends
86c7a7a058
@Depth insertion for WI Entries
2023-09-21 16:04:34 +09:00
Cohee
dc1c477d62
Uncomment page size selector in WI editor
2023-09-18 01:52:41 +03:00
Cohee
06825331d6
Confirmation for WI entry delete
2023-09-05 12:05:20 +03:00
Cohee
428c851c9b
Fix WI overflow alerting counter
2023-09-01 23:14:01 +03:00
Cohee
1900ab9726
#1005 Replace mobile detection method in get sortable delay. Make deviceInfo loading sync. Init Ross mods via function call.
2023-08-24 23:52:03 +03:00
Cohee
de0dbfb394
Merge branch 'roleplay-context' into staging
2023-08-24 00:30:04 +03:00
Cohee
1ce848c1c3
Move before / after char WI to story strings
2023-08-24 00:26:47 +03:00
Cohee
bc5fc67906
Put tokenizer functions to a separate file. Cache local models token counts
2023-08-23 02:38:43 +03:00
Cohee
fd95b79ae9
Fix auto-translate plugin. Add new event types for post-rendering
2023-08-22 22:45:12 +03:00
Cohee
e2bac7ec5f
Add type checking and JSDoc comments to some utils
2023-08-22 13:07:24 +03:00
Cohee
92686d4ba8
Optimize WI editor header. Add entries search
2023-08-22 01:51:31 +03:00
Cohee
069a07a139
Add pagination for WI entries #964
2023-08-21 21:10:11 +03:00
Cohee
4a30875030
#964 Move WI token counting func into module scope
2023-08-21 18:16:40 +03:00
Cohee
cf6a76929d
WI skill issue
2023-08-20 18:32:02 +03:00
Cohee
106f7afdcb
Slight performance increase for opening large World Infos
2023-08-20 13:15:02 +03:00
Cohee1207
991ff98eaa
Performance optimizations for character edit / chat opening
2023-08-19 15:58:17 +03:00
Cohee
08a0709186
Escape "Match whole words" regex
2023-08-18 14:54:38 +03:00
Cohee
c4d8d70103
Improve phone usability of sortable drags
2023-08-18 13:41:46 +03:00
Cohee
23a4705d36
Use common save settings function on WI budget cap
2023-08-13 19:50:12 +03:00
Cohee
3688bd0b04
#930 Fix WI activation via slash command
2023-08-13 19:20:00 +03:00
maver
011278c533
Re-Render prompt manager on worldinfo settings change
2023-08-12 18:40:38 +02:00
Cohee
9e43f5f8b7
Add flat budget cap for hybrid WI budgeting
2023-08-10 20:45:57 +03:00
Cohee1207
32e5566a37
Fix WI overflow alert
2023-08-07 22:12:50 +03:00
city-unit
fa06e5ee5a
Add optional alerting for WI debugging.
2023-07-29 22:15:54 -04:00
Cohee
88f3e01f72
Fix logspam in WI parser
2023-07-28 21:58:18 +03:00
Cohee1207
c4209b9448
Fix naming
2023-07-25 01:13:32 +03:00
Cohee
edd41989fd
Initial commit
2023-07-20 20:32:15 +03:00