Commit Graph

5393 Commits

Author SHA1 Message Date
Cohee fcfa15a5ad Add model to presets. Fix restoration on app load 2024-08-11 16:18:24 +03:00
Cohee aa0eecd17e Remove fill from icon SVG 2024-08-11 16:06:43 +03:00
Cohee 249383d44d Fix data-i18n attribute 2024-08-11 15:59:02 +03:00
Edward Kim 41247740b1 fixed model in max context 2024-08-10 22:00:26 -04:00
Edward Kim 88ada0f67d fixed ordering in image generation source, and max token length for llm models 2024-08-10 21:55:52 -04:00
Cohee 9af640cdf8
Merge pull request #2635 from SillyTavern/independent-WI-disable
Split WI Entry 'disable' into separate toggle
2024-08-11 00:11:23 +03:00
Cohee 41a3a97925 Clean-up commented code 2024-08-11 00:10:17 +03:00
Cohee ed99e41985
Merge pull request #2636 from SillyTavern/stopping-strings-group-members
Group members as stopping strings only added if generating for a specific member or impersonating
2024-08-10 23:58:58 +03:00
Edward Kim 08d5a2826f fixed generation endpoints, added animation via gifs 2024-08-10 13:07:52 -04:00
RossAscends 06efdf17d8 clarify regex editor tooltips 2024-08-10 18:12:45 +09:00
RossAscends ffb374b8f3 clarify Regex editor "only" toggles. 2024-08-10 18:07:39 +09:00
RossAscends d7d99fa94c add tooltip, efficient-ify class toggling 2024-08-10 17:53:02 +09:00
Wolfsblvt fd03ccdd4f Only add group member stopping strings on message
- Only add group members as stopping strings if generating for a specific group member or user. (Allow slash commands to work around name stopping string restrictions)
2024-08-10 07:32:25 +02:00
RossAscends e77dd96bb7 add color to toggle on state 2024-08-10 13:12:46 +09:00
RossAscends 0dce445375 fix toggle logic and cursors 2024-08-10 13:07:07 +09:00
RossAscends 704058ac36 re-divorce entry active state from trigger strategy 2024-08-10 12:48:47 +09:00
splitclover dcfeb837a8 Add await to events 2024-08-10 00:44:01 +02:00
splitclover 696ca50652
Merge branch 'SillyTavern:staging' into staging 2024-08-09 23:49:59 +02:00
splitclover 754752c80a Added chat completion import/export events 2024-08-09 23:49:18 +02:00
Cohee 478e1a6bb5
Merge pull request #2629 from SillyTavern/improve-swipe-commands
Improve `/addswipe` and `/delswipe` slightly
2024-08-10 00:48:48 +03:00
Wolfsblvt e9602b840c Enhanced tooltip for Char Lore button 2024-08-09 22:10:41 +02:00
Cohee 6683ae810f Replace mobile TTS placeholder text
Closes #2631
2024-08-09 10:17:06 +03:00
Wolfsblvt 7ffc69b83b /delswipe returns current swipe id 2024-08-09 00:38:51 +02:00
Wolfsblvt 2ce58bb0a6 Allow switching on /addswipe
- Add optional "switch" arg to /addswipe
- Make /addswipe return the new swipe id
2024-08-09 00:37:26 +02:00
Cohee e17f0b368d
Merge pull request #2623 from SillyTavern/gpt-4o-structured-model
Add GPT-4o checkpoint model (support Structured Output)
2024-08-08 13:13:59 +03:00
Edward Kim b9857eb315 Added block entropy endpoints for chat and image 2024-08-08 00:08:03 -04:00
Cohee 6e1ba5f7e2 Change event handler type for custom CSS
Closes #2624
2024-08-08 00:21:18 +03:00
Wolfsblvt 3fab783e44 Add GPT-4o checkpoint model
- This one supports "Structured Outputs"
2024-08-07 21:35:15 +02:00
Cohee 93c7dd50f5 Fix template name case 2024-08-07 22:01:43 +03:00
Cohee f0b13d3172 Allow wand SD gens when LLM not connected 2024-08-07 20:58:36 +03:00
Cohee 32c48cf9fa Fix default value for OpenRouter Top A 2024-08-07 20:58:19 +03:00
Cohee d6e7fd78ad Add event handlers for dynamically added neo-range-inputs 2024-08-06 22:28:37 +03:00
Wolfsblvt 444339e156
Merge pull request #2618 from steve02081504/patch-4
Update zh-cn.json
2024-08-06 11:31:09 +02:00
Wolfsblvt ed3f028a36 consistent template names 2024-08-06 11:30:17 +02:00
Cohee c76306d461 Restore CC OpenRouter providers on load 2024-08-06 11:33:56 +03:00
Cohee 76e2586eaf Don't close providers dropdowns on select 2024-08-06 11:27:38 +03:00
Cohee e45a445ef9 Init textgen model selects before loading settings 2024-08-06 11:22:13 +03:00
steve02081504 02c5a40b98 Crate WorldInfoKeywordHeaders.html 2024-08-06 11:20:19 +08:00
steve green 75bb59b204
Update zh-cn.json 2024-08-06 11:19:35 +08:00
Cohee 0baca3b7d3 Merge branch 'staging' into wi-go-brrrrrr-too 2024-08-06 00:29:24 +03:00
Cohee 6637bc3052 Emit events on caption and SD image messages 2024-08-05 21:22:40 +03:00
Wolfsblvt bc9eb080e5 Cannot recalc scrollHeight before resetting it
- Fixed Ross' fuck-up. You can thank me later
2024-08-05 07:53:24 +02:00
RossAscends 64e716bb62 async for resetScrollHeight, slightly faster WI/AF panel loads 2024-08-05 12:03:46 +09:00
Wolfsblvt 7c764264f4 Make WI entry drag handle not selectable 2024-08-05 03:29:29 +02:00
Wolfsblvt 34767e5ce3 Improve performance by half on WI book load 2024-08-05 02:05:27 +02:00
Wolfsblvt 3523ec334d Improve performance on fancy key selector init 2024-08-05 01:06:37 +02:00
Wolfsblvt 4966139fd1 Improve performance of expand/close all WI button 2024-08-05 00:09:50 +02:00
RossAscends c13ca77bd9 added safety feature: reset MUI panel settings when toggling MUI off 2024-08-04 21:39:24 +09:00
RossAscends d1c3798d76 clarify MUI settings display in UserSettings Panel 2024-08-04 21:23:45 +09:00
Azariel Del Carmen 5d0581603b
fix: LLM Classifier Defaulting to Last Spoken Character's Expression For All Characters in Group Chats (#2605)
* fix: fix llm expression classifier on group chats

* chore: adjust some things

* fix: exisiting chats defaulting to last character's sent message

* chore: use dual awaits than promise

* chore: restore allSettled and separate await call for llm only

* chore: move classification to generateRaw

* chore: remove characterId

* chore: revert some placements back to how they were

* chore: remove uneeded imports
2024-08-04 13:24:24 +03:00
Cohee 16172b410c
Merge pull request #2598 from NearEDGE/quick-impersonate-regenerate-buttons
Added quick Regenerate and Impersonate buttons
2024-08-04 13:16:05 +03:00
NearEDGE ea76ec89de Removed quick regenerate button
Response to change request.
2024-08-03 16:56:43 -04:00
Cohee 68de3fed59
Merge pull request #2594 from SillyTavern/sd-stop
Image generation stop handling
2024-08-03 12:06:50 +03:00
Cohee d5576cd7b7
Merge pull request #2601 from SillyTavern/wi-blackbox-be-gone
WI blackbox begone (Export, document and refactor a bit of the WI API)
2024-08-03 11:57:52 +03:00
steve green 80a3c2f988
Update zh-cn.json 2024-08-03 13:16:40 +08:00
Wolfsblvt d84fef0478 Fix SD wand entry not always being clickable 2024-08-03 00:10:46 +02:00
Wolfsblvt 7d46ca212b Expand/show DS prompt gen error 2024-08-03 00:06:48 +02:00
Cohee 664447d585 Stop propagation on WI entry delete 2024-08-03 00:00:15 +03:00
Wolfsblvt c9acea8522 fix WI sorting error 2024-08-02 22:44:21 +02:00
Cohee 73e3acbd51
Merge pull request #2602 from Succubyss/gemini-again
Gemini max context size corrections, option selector update
2024-08-02 23:41:10 +03:00
Cohee 987dc6a879 Swap legacy and ultra models 2024-08-02 23:35:02 +03:00
Cohee f4bc93a90b Stretch onboarding dialog content vertically 2024-08-02 23:31:18 +03:00
Succubyss 366070adee ultra re-addition (just in case), fixed system prompt line 2024-08-02 15:26:15 -05:00
Cohee 7e8b7e128e Sync change with oai_settings 2024-08-02 22:51:29 +03:00
Succubyss c291564925 gemini: max context, selection revisions, ultra removal 2024-08-02 14:35:48 -05:00
Wolfsblvt dee4ad8794 Make 'sortWorldInfoEntries' custom sortable 2024-08-02 20:57:55 +02:00
Wolfsblvt c0039111dd Update delete WI entry to new popup 2024-08-02 20:51:12 +02:00
Wolfsblvt 3897b8c082 Export and doc most of wi functions 2024-08-02 20:42:53 +02:00
Cohee 4b61bcc741
Merge pull request #2600 from Succubyss/gemini-1.5-pro-exp-0801 2024-08-02 21:39:19 +03:00
Succubyss 3f6e4fabb8 gemini updates 2024-08-02 13:30:54 -05:00
NearEDGE 4f76e9e10f Added quick Regenerate and Impersonate buttons
Additional buttons mimic the behavior of the continue button.
2024-08-02 08:17:29 -04:00
Cohee 7498018ac6 Fix incorrectly self-closed div tags 2024-08-02 00:07:30 +03:00
Cohee 41af05769b Add separate imagegen stop button
Closes #2591
2024-08-01 23:57:24 +03:00
Cohee 8892fdc421 Sort textgen model lists alphabetically 2024-08-01 23:21:34 +03:00
Cohee 417335a19d Display context size for featherless models 2024-08-01 23:17:03 +03:00
Cohee 8660c96412 Hide mirostat for featherless 2024-08-01 22:54:24 +03:00
RossAscends 7acc78db0a embetterify Sampler Select function 2024-08-02 01:01:50 +09:00
Cohee 8ff4a4a36a Don't modify legacy URL path for inappropriate API types 2024-08-01 15:01:38 +03:00
Cohee 2876426c87 Filter mirostat block by API type.
Sources:
- https://docs.vllm.ai/en/latest/dev/sampling_params.html
- https://docs.together.ai/reference/completions-1
- https://github.com/theroyallab/tabbyAPI/blob/main/common/sampling.py#L326
- https://openrouter.ai/docs/parameters
- https://github.com/ollama/ollama/blob/main/docs/api.md#generate-request-with-options
- https://mancer.tech/docs-api/#/openai/post_oai_v1_completions
- https://github.com/ggerganov/llama.cpp/blob/master/examples/server/README.md#api-endpoints
- https://github.com/LostRuins/koboldcpp/blob/concedo/koboldcpp.py#L139
- https://github.com/PygmalionAI/aphrodite-engine/blob/main/aphrodite/common/sampling_params.py#L77
- https://huggingface.co/docs/huggingface_hub/en/package_reference/inference_types#huggingface_hub.TextGenerationInput
- https://dreamgen.com/docs/api#openai-text
2024-08-01 14:42:58 +03:00
Cohee 40ee236ca8 Add multimodal captioning for 01.ai 2024-08-01 01:34:49 +03:00
Cohee 7b9eb97c7f Support image inlining for 01.ai 2024-08-01 01:15:13 +03:00
Cohee 21d074aa46 Update default Chat Comp models to better ones 2024-08-01 00:51:11 +03:00
Cohee 2871f309c9
Merge pull request #2592 from Succubyss/gemini-maxtemp
Update MakerSuite temperature caps
2024-08-01 00:46:50 +03:00
Cohee 101616c422 Update Perplexity models 2024-08-01 00:43:21 +03:00
Succubyss 4561eca684 correct MakerSuite max temps 2024-07-31 16:20:45 -05:00
LenAnderson 83ba31ba06 Merge branch 'parser-followup-2' of https://github.com/LenAnderson/SillyTavern into parser-followup-2 2024-07-30 16:01:16 -04:00
LenAnderson 88d3771863 compile LESS 2024-07-30 16:00:41 -04:00
LenAnderson 92eec72c6d draw attention to debug buttons 2024-07-30 16:00:32 -04:00
LenAnderson 3343f3122b stop chat input and progress bar from collapsing 2024-07-30 16:00:13 -04:00
Wolfsblvt c139222aee Merge branch 'staging' into pr/2415 2024-07-30 21:46:08 +02:00
Wolfsblvt 7bb94732dd mark popup complete functions as async 2024-07-30 21:45:19 +02:00
Wolfsblvt 379a4d1e4d add autocomplete color for non-selectable entries 2024-07-30 20:52:58 +02:00
Wolfsblvt 7c27211bc9 QR label alignment/wrapping 2024-07-30 20:51:55 +02:00
Wolfsblvt 023bd840fa Fix QR context error on no set chosen 2024-07-30 19:54:17 +02:00
Cohee 880f986848
Merge pull request #2582 from SillyTavern/improve-tag-backup-restore
Improve Tag Backup Restore functionality
2024-07-30 18:46:22 +03:00
Wolfsblvt a8f6e5c5f7 purify popup warning string 2024-07-30 17:37:34 +02:00
Cohee 2a08916efe
Merge pull request #2587 from SillyTavern/fix-lazy-loading-chat-when-empty
Fix "show more messages" on empty chat
2024-07-30 18:21:13 +03:00
Wolfsblvt 0c50de2f44 tiny change in intention clarity 2024-07-30 17:00:13 +02:00
steve green ba9b16191f
Update 'zh-cn' translation (#2583)
* Update world-info.js

- make the rename button is also available in case of WIbook corruption.
- make the WI engine doesn't crash when certain entrys with `content === null`.

* Update zh-cn.json

* Part revert "Update world-info.js"

This part reverts commit 0693c9c400.
2024-07-30 17:20:10 +03:00
splitclover 89ca8329b7
Added event after generate data, export sendStreamingRequest and sendGenerationRequest 2024-07-30 16:07:46 +02:00
Kas1o ccb3128b66 fix typo 2024-07-30 06:56:11 +00:00
LenAnderson 18e3659914 fix syntax loop debugger misalignment 2024-07-29 21:43:38 -04:00
LenAnderson 1d4c44fcf6 fix AbortController missing from imported closures 2024-07-29 21:01:58 -04:00
Wolfsblvt bb4aa709e6 Fix "show more messages" on empty chat
- Fixes lazy loading of chat when all messages were deleted
- Fixes #2586
2024-07-30 01:13:43 +02:00
Wolfsblvt 87a563e7d2 Remove wrong css class 2024-07-29 20:30:06 +02:00
Wolfsblvt 74c0a194fd Update tag restore popup text 2024-07-29 20:17:34 +02:00
Wolfsblvt 0c2df51e2c Fix importing char on some formats
- Fix importing chars mime types failing on addition mime type information that was not expected (like utf format)
2024-07-29 04:09:13 +02:00
Wolfsblvt 4408f52c79 Fix tag backup import not refreshing popup 2024-07-29 02:33:36 +02:00
Wolfsblvt 1738e8a48d Update merged/replaced tag map links
- On both skip and replace, tag map could run into issues with old IDs being referenced. Fixed that by building a mapping for the actual ID that will be the result.
2024-07-29 00:05:35 +02:00
Wolfsblvt 105f54ac72 Check on existing tag names too 2024-07-28 23:41:28 +02:00
Wolfsblvt c026becb6d Add toastr click popup on tag restore warnings 2024-07-28 23:20:33 +02:00
Wolfsblvt 6328bfa0a3 Prompt for overwrite on tag backup restore 2024-07-28 22:51:22 +02:00
Wolfsblvt 0dfd31430c Add Popup.show.text 2024-07-28 22:39:11 +02:00
Wolfsblvt b1f17af9fb Change default tag alpha to 0.5 2024-07-28 21:54:15 +02:00
LenAnderson 0959e3abc2 fix return value of /delmode 2024-07-28 15:25:35 -04:00
Cohee 82a633da57 Add toggle for names as stop strings
Closes #2556
2024-07-28 22:22:36 +03:00
Wolfsblvt d031a659a4 Tag as folder selector more specific
- Make tag_as_folder CSS selector more specific. Fixes falsely applied greyscale
2024-07-28 20:27:13 +02:00
Wolfsblvt abf9f526c0 Fix tag colors resetting on sorting
- That workaround is not needed anymore. Colors are now always set on printing the tag list items
2024-07-28 20:23:28 +02:00
Cohee 712f8a56e4
Merge pull request #2578 from SillyTavern/improve-building-CONNECT_API_MAP
Improve building CONNECT_API_MAP
2024-07-28 21:08:28 +03:00
LenAnderson 98a1b99b14 anchor wildcard lookup 2024-07-28 08:33:33 -04:00
LenAnderson 039c27e201 add "for {{input}}" comment to chat input placeholder and title 2024-07-28 08:33:18 -04:00
LenAnderson 2470f775e2 Merge branch 'staging' into parser-followup-2 2024-07-28 08:32:25 -04:00
Cohee 83858d496d Fix iOS Firefox viewport position when navigating from login 2024-07-28 14:08:25 +03:00
Cohee bdafa09c1b
Merge pull request #2572 from SillyTavern/theme-command-improvements
/theme allows returning current theme & fix /theme and /bg doc
2024-07-28 11:51:41 +03:00
Cohee e45e89ce16
Merge pull request #2577 from joenunezb/fix-handle-text-response-from-sendas
Fix: Properly handle text responses when character name is not provided in sendas cmd
2024-07-28 11:28:33 +03:00
Cohee e16740a99a
Merge pull request #2573 from steve02081504/patch-4
Update zh-cn.json
2024-07-28 11:23:38 +03:00
Wolfsblvt 5aad29bd5b Improve building CONNECT_API_MAP
- Automatically fill `CONNECT_API_MAP` based on the registered text comp and chat comp APIs.
- Allow custom APIs and custom overrides to be set first.
2024-07-28 07:11:12 +02:00
Wolfsblvt 2447658a45 Add featherless to /api 2024-07-28 06:42:40 +02:00
joenunezb 211c671cb6 FIX: Properly handle text responses when character name is not provided in sendas cmd 2024-07-27 21:29:37 -07:00
steve02081504 755267bfb6 fix of empty `data-i18n` keys 2024-07-28 10:21:18 +08:00
steve green 5caf0e8359
Update zh-cn.json 2024-07-28 10:20:19 +08:00
Wolfsblvt d46fd9d174 Fix WI reloading on slash commands 2024-07-28 04:17:45 +02:00
Wolfsblvt 6b1045ab52 Update /bg docs to match the actual command 2024-07-28 01:17:11 +02:00
Wolfsblvt c2e6903b30 Allow /theme command to return current theme
- Add empty args to return theme name on /theme call
- Improve help string docs for /theme
2024-07-28 01:15:55 +02:00
Cohee 87e562b752 Allow "none" position for extension prompt injects 2024-07-28 00:26:44 +03:00
LenAnderson ba840248eb order wildcard macros by index of wildcard for substitute 2024-07-27 15:31:23 -04:00
LenAnderson b5d90a4259 let /qr-arg overwrite wildcard macros 2024-07-27 15:30:50 -04:00
Cohee 1ad57e6ff6
Merge pull request #2568 from SillyTavern/wi-apply-sorting-order-fix
Fix apply WI sorting to order field
2024-07-27 21:44:02 +03:00
Cohee d37d6faa9f Fix chat width and font scale not applying on manual input 2024-07-27 21:38:03 +03:00
Cohee 84c384f255
Merge pull request #2569 from SillyTavern/more-sensible-wi-ui-sorting
More sensible UI WI entries sorting
2024-07-27 21:19:37 +03:00
Wolfsblvt 5e2e48c84d More sensible UI WI entries sorting
- Use same secondary/tertiary sorting for all sortings
- Refactor and streamline code
2024-07-27 19:56:14 +02:00
Cohee 1b570bf16f Fix empty chats not showing in chat manager 2024-07-27 20:37:14 +03:00
Wolfsblvt ad65fbc1fc Fix apply WI sorting to order field
- Fix using wrong values because of displayIndex
- Expand it to take any current sorting, not just the "custom" one
2024-07-27 19:27:55 +02:00
LenAnderson cf42c4044e add missing start/end named arg index to /: 2024-07-27 12:50:30 -04:00
Cohee 8dd5d9321d Fix gallery duplicate uploads 2024-07-27 18:00:30 +03:00
Cohee e1700f9a14 Fix gallery paging overflow 2024-07-27 16:35:00 +03:00
Cohee ad387a7464
Merge pull request #2564 from SillyTavern/instruct-mistral-large
Add first/last user messages prefixes for instruct mode
2024-07-27 16:08:28 +03:00
Cohee d214c18156 #2566 Cache expressions list for LLM API 2024-07-27 13:57:39 +03:00
LenAnderson a6443f71a3 constructor should also allow HTMLInputElement 2024-07-26 22:27:00 -04:00
LenAnderson b7e8f8faaa don't let progress bar go backwards 2024-07-26 22:26:52 -04:00