Commit Graph

162 Commits

Author SHA1 Message Date
41b6169ea8 Extend getContext API 2024-03-21 01:11:47 +02:00
5b7b06aba8 Make logprobs draggable, fix conflicts between moving UI and maximization, fix z-fighting 2024-03-19 01:40:02 +02:00
c82157945e Allow generic moving divs for extensions 2024-03-17 19:23:01 +02:00
77784585ba Merge branch 'staging' into tags-as-folders-enhancements 2024-03-16 22:32:01 +02:00
b6c29f7129 added new langs
+added new lang: Arabic, Portugese, Vietnamese
+added display names for all langs
+added data-i18n= tags for translation
2024-03-12 19:03:12 +01:00
73fdcbad44 Fix some bugs (see below):
1. Remove yellow highlights in hotswaps list.
2. Decrease font size of group members list, make it respect the block limits (1 row for small avatars, 3 rows for big avatars).
3. Fix autoload loading the first character if the latest selected entity was a group.
4. Fix tag key potentially skipping the first character.
5. Fix being unable to open groups from the hotswaps panel.
6. Fix left alignment of hotswaps panel, now centered.
7. Fix rounding of missing group avatars (most noticeable when favorited).
2024-03-09 21:58:13 +02:00
32049b7e1d Merge branch 'staging' into tags-as-folders-enhancements 2024-03-09 21:15:13 +02:00
5ac7826fec Tag Folders: Additional Fixes
- Refactored to one general printTagList method
- Made a robust getTagKeyForEntity function
- Fixed group not displaying tags if autoloaded
- Fixed added tags on character/groups not being auto sorted
- Fixed autoload of group/character that I killed
- Fixed typo
2024-03-07 23:48:50 +01:00
5c410986a4 Add support for DreamGen API.
API docs: https://dreamgen.com/docs/models/opus/v1
API keys: https://dreamgen.com/account/api-keys

I decided to base this on the text-completion API since it's more
flexible with SillyTavern's prompt formating capabilities.

This also means that custom context and instruct settings are required.

Will add documentation in a followup PR.
2024-03-07 12:25:48 +01:00
fc6146fa00 Tag Folders: Rework favorites display
- Favorites display uses same method than inline avatars
- Favorites now respect avatar style
2024-03-06 04:59:39 +01:00
f962ad5c02 Add OpenRouter as a text completion source 2024-02-25 22:47:07 +02:00
8075e4cd1e Changes 2024-02-16 09:07:06 -06:00
b5887960b6 Merge branch 'release' into InfermaticAI 2024-02-16 08:53:04 -06:00
c3129da879 [skip ci] Lint fix 2024-02-07 19:28:34 +02:00
60044c18a4 Implement Token Probabilities UI using logprobs 2024-01-25 18:34:46 -06:00
f29f934c6b Progress 2024-01-24 06:59:27 -06:00
814ed49c31 #1719 Clear text nodes in rendered formulas 2024-01-21 17:27:09 +02:00
e1deff67fc Migrate auto-connect and auto-load from localStorage 2024-01-05 20:27:19 +02:00
7899549754 Make "send message from chat box" into a function
Right now all it does is handle returning if there's already a message
being generated, but I'll extend it with more logic that I want to move
out of Generate().
2023-12-25 03:48:49 -05:00
ae64c99835 Add custom caption source 2023-12-20 21:05:20 +02:00
5734dbd17c Add custom endpoint type 2023-12-20 18:29:03 +02:00
67dd52c21b #1309 Ollama text completion backend 2023-12-19 16:38:11 +02:00
b0d9f14534 Re-add Together as a text completion source 2023-12-17 23:38:03 +02:00
180061337e Merge branch 'staging' into anachronous/release 2023-12-17 21:35:49 +02:00
61e87d562f Add confirmation for regen with keystroke 2023-12-17 21:27:33 +02:00
a88cf1552a add check for uparrow hotkey to see if last_mes edit buttons are visible 2023-12-17 23:19:20 +09:00
b0907d23cc Merge branch 'staging' of https://github.com/Cohee1207/SillyTavern into staging 2023-12-17 20:18:53 +09:00
3d1bbd94e1 allow msg edit hotkey when user is last 2023-12-17 20:18:51 +09:00
1e88c8922a Merge branch 'staging' into release 2023-12-17 10:38:04 +01:00
9f2d32524c Add TogetherAI as a chat completion source, basic 2023-12-16 14:39:30 +01:00
583f786d74 finish mistral frontend integration + apikey status check 2023-12-16 07:15:57 +10:00
66953ceba3 Move device type detection to client side
We don't need the server to tell us our user agent--we can get it
ourselves through navigator.userAgent and parse it on the frontend.

I've replaced device-detector-js with Bowser because device-detector-js
is really slow, freezing for up to 500ms to parse a single user agent.
2023-12-14 18:43:59 -05:00
8cfc8ebe66 Remove boolean comparisons to isMobile
We know this function will *always* return a boolean, so we don't need
to compare it to one.
2023-12-14 18:37:54 -05:00
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
be396991de finish implementing ui changes for google models 2023-12-14 11:53:26 +10:00
69e24c9686 change palm naming in UI 2023-12-14 11:14:41 +10:00
e7c2975ab0 Fix adv.defs overlap with past chats. Close CFG with Escape 2023-12-11 15:39:58 +02:00
5f1683f43a More input padding and stricter sanitation 2023-12-10 15:07:39 +02:00
786e131c1e Disable scroll adjustment for firefox 2023-12-04 11:00:22 +02:00
9c33ddbafc Make textgen settings type checks more concise 2023-12-03 14:56:01 -05:00
047c897ead Remove is[API] functions
Just use an equality comparison. It's a bit longer, but only because
"textgenerationwebui_settings" is a long identifier.
2023-12-03 14:56:01 -05:00
64a3564892 lint: Comma dangle 2023-12-02 22:06:57 +02:00
c63cd87cc0 lint: Require semicolons 2023-12-02 21:11:06 +02:00
a37f874e38 Require single quotes 2023-12-02 13:04:51 -05:00
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
97c49a405b Enable no-extra-boolean-cast lint 2023-12-02 10:32:26 -05:00
a665a4897d Enable no-unused-labels lint
I'm not sure why "esversion: 6" was at the top of the file. My best
guess is that whoever initially created it was using jshint, which says
"use 'esversion: 6'" if used to lint a file which contains ES6 code.
Even then, the proper syntax would be a comment.
2023-12-02 10:32:07 -05:00
87707b565f Add checkbox for restoring user input on page refresh 2023-11-28 00:29:34 +02:00
42c73c8658 block mobile swipe gesture under fullscreen panels 2023-11-15 19:20:05 +09:00
8a8880fca1 Visual touch-up 2023-11-11 16:31:13 +02:00