Commit Graph

69 Commits

Author SHA1 Message Date
36a62aad9e Merge branch 'main' into dev 2023-03-06 17:51:20 +02:00
d2cce0eead Merge remote-tracking branch 'ross/main' 2023-03-06 16:04:41 +02:00
2cd6739aaa dynamic char delete + button/create form styling
1. enabled deletion of characters without page reload. now when a user deletes a character, the page will not auto-refresh, but they will be get a message from Chloe instructing them to pick another character to continue.

2. standardized all buttons to use menu_button class instead of individual ID stylings

3. adjusted create_form, making wider range inputs for mobile users.
- moved 'back button' to the bottom of the form next to delete/create/export
- changed the 'back' button on post-creation rm_info to look like a button

4. condensed redundant CSS where possible; removed unused CSS.

5. Fixed the problem of the nav auto-closing when a character is created or when using advanced editing window.

6. made the token counter load when a character is selected. previously it only showed up after edits were made.

7. found some problems with /createcharacter - if a character/PNG with the same name exists, the server won't make a new character, but it doesn't tell the user about the error.  I UI acts as if the character was created. I added some soft console.error messages for this, but couldn't figure out a way to make it give a proper error. probably because fs.existsSync doesn't have a callback.
2023-03-06 10:58:10 +09:00
7ce52046fd New toggle features: Auto-Connect & Auto-Load-Chat
1. new function - Auto-connect to API
2. new function - Auto-load last character/chat

Both of these have toggles in the right menu at the bottom in a "Power user options" section.

Both only load if settings.json has a pre-defined setting for them. (won't fire on first load after install)
2023-03-04 04:00:40 +09:00
b856e2f566 A little error-proofing to chat loading and history viewing
1. revised the new date format (reformatted to be a function so it would return new dates each time called)

2. re-added new date format functionality as I had previously rolled it back while debugging the avatar loading issues discovered in last push.

3. resolved some issues related to loading past chats for bots with no chat save files. Usually this wouldn't happen, as a new (or previous) chat is loaded each time the character is selected. But in cases where the files are deleted after being created, the chat history loading screen would remain in a 'loading.svg' loop. I added errorhandling to avoid this, and to kick GetAllCharaChats() from trying to read empty arrays.

4. increased potential size of past chats popup box
2023-03-03 11:36:57 +09:00
6199fcb5da Merge branch 'main' into dev 2023-03-03 01:14:04 +02:00
b0baeba156 Merge remote-tracking branch 'ross/main' 2023-03-03 01:02:45 +02:00
751647461e Fixed broken character avatar updates + settings panel tooltips
1. Due to a mistake on my end character avatars were not updating real time. This has been fixed.

2. added some tooltips to icons and buttons on the right nav panel.

3. resized the New Character and Import Character buttons
2023-03-03 07:26:21 +09:00
cfa642507f Chat Filename Humanization + Larger Past Chats Box
1. Replaced all Date.now() instances with a humanized ISO8601 timestamp that is easily readable by users.

This has a seamless effect on the  embedded timestamping of chat mesages. Old chat files can still be edited (messages deleted), and continued.

Character PNG files get updated with the new date format, and this will be reflected in github but there is no functional change to the user.

2. Added character name to the front of all newly saved/imported chat files. Old chats will retain their original filename unless re-imported.

With these two changes, the new chat filenames are as such:

"Aqua - 2023-3-3 @03h 08m 36s 948ms.jsonl"

(I would like to make it smaller, perhaps by removing the milliseconds. Let me know if this is possible, or if it would introduce potential overwrites if users make/update files within the same second.)

3. Increased the size of the 'view past chats' popup box to max 800px so accommodate the new larger filenames.
2023-03-03 03:48:30 +09:00
36b3d4cac3 Add support for external TAI API calls 2023-03-02 17:05:27 +02:00
f215ff664e Shuffle randomly activated chars 2023-02-27 19:25:38 +02:00
aa05749e9b Implement message sending in group chats 2023-02-27 18:48:01 +02:00
82566e1163 Add group chats creation 2023-02-27 01:57:10 +02:00
3a6e1cc660 Add avatar uploading 2023-02-25 17:53:05 +02:00
63a1f7abee Merge with ross changes 2023-02-25 00:02:17 +02:00
02330b4d12 Ross CSS 1.2.8 + hotkeys take 3 2023-02-25 05:36:41 +09:00
406724f200 Disable server-side WI entirely 2023-02-21 16:22:28 +02:00
53bfce557f Replace implementation of world info 2023-02-20 18:19:46 +02:00
94d4b06dc7 Merge branch 'TavernAI:main' into main 2023-02-19 12:43:51 +02:00
Ash
a104082943 ip checking whitelist fix 2 2023-02-18 20:17:35 +04:00
Ash
f24fd58710 ip whitelist fix 2023-02-18 19:54:44 +04:00
Ash
6cf2d95144 ip whitelist check fix 2023-02-17 02:58:07 +04:00
Ash
7b9837fd06 fix 2023-02-17 02:42:49 +04:00
7cf902b7d2 Add async error handling 2023-02-16 13:01:11 +02:00
2989f9566d Merge branch 'TavernAI:main' into main 2023-02-15 17:41:02 +02:00
f60f2cb7a7 Uncomment set of boolean fields on Kobold WI 2023-02-15 14:35:31 +02:00
Ash
dbcc628d53 Merge branch 'main' of https://github.com/TavernAI/TavernAI
# Conflicts:
#	server.js
2023-02-15 15:36:42 +04:00
Ash
366f235c02 @1.2.8:
1) Security update: https://github.com/TavernAI/TavernAI/security/advisories/GHSA-25wp-82wc-xchj
2) Fixed several bugs related to character import: now all imported characters are added to the top of the list.
3) Fixed a bug that duplicated character cards if the character name and map name did not match.
4) Made minor fixes for prompt formatting.
5) Added the ability to enable/disable TavernAI autostart in the browser through the configuration file.
6) Adapted for Pygmalion Dev.
2023-02-15 15:33:06 +04:00
d6e6f9520d Hide SPs select for now, refactor async endpoints 2023-02-15 11:08:01 +02:00
41c32fd12f Merge remote-tracking branch 'origin/softprompt' 2023-02-15 02:21:44 +02:00
338de3f042 Merge remote-tracking branch 'upstream/main' 2023-02-15 02:19:57 +02:00
44e7d2ab01 Remove Cookie secure options
almost server is not using https, so disable it.
2023-02-15 07:01:51 +09:00
Ash
cb00faa570 Merge branch 'HEAD' of https://github.com/TavernAI/TavernAI 2023-02-14 23:11:24 +04:00
Ash
baabea2c55 colab 2023-02-14 23:11:06 +04:00
8b7b51ffad Merge pull request #46 from ZoltanAI/main
Improve JSON import
2023-02-14 22:25:16 +04:00
1041fb77f7 Apply CORS Settings 2023-02-14 20:05:51 +09:00
9490c898c9 Implementats CSRF Token 2023-02-13 23:54:08 +09:00
0eb8aecdb2 Merge branch 'TavernAI:main' into softprompt 2023-02-12 22:34:42 +02:00
38d83c7eec Add softprompts selector 2023-02-12 18:11:33 +02:00
2389cd91b4 Fix settings resetting. Hide secondary key unless selective 2023-02-12 13:47:36 +02:00
d09e3d114c #21 Add world info editor 2023-02-12 00:01:54 +02:00
3c295cff77 Improve JSON import
Prefer TavernAI JSON format
Import all TavernAI JSON properties
Handle missing or null fields
2023-02-11 14:42:53 +00:00
bea28c1845 #21 Add world info export, edit popup and deletion 2023-02-10 23:26:53 +02:00
1e48220711 #21 Add basic upload of world infos. Add info Note 2023-02-10 18:12:19 +02:00
d79d4f83f9 Fix resetting world info for None option 2023-02-10 13:50:26 +02:00
0c77d41fa6 Merge branch 'worldinfo' of https://github.com/SillyLossy/TavernAI into worldinfo 2023-02-10 11:14:41 +02:00
26790f9b3c More tidy for PR 2023-02-10 11:14:30 +02:00
a76a47c541 Remove unused array 2023-02-09 23:33:23 +02:00
3850477814 #21 Add saving/loading of selected world info from local settings. Improve syncronization. Add status of world info (buggy rn) 2023-02-09 22:13:37 +02:00
c760ba54f2 #21 Adds basic support of World Info files loading and synchronization with Kobold API 2023-02-09 18:38:00 +02:00