Commit Graph

661 Commits

Author SHA1 Message Date
Cohee 1a372abaff Customizable avatars for users 2024-04-13 17:52:37 +03:00
Cohee 10aa268ea2 Filter out invalid character files 2024-04-13 16:21:41 +03:00
Cohee 59657766b5 Switch password hashing function to scrypt 2024-04-13 15:40:47 +03:00
Cohee 716d1fc988 Merge branch 'staging' into neo-server 2024-04-13 15:26:48 +03:00
Cohee 2661f00dd4 Fix loading plugins from default exports 2024-04-13 13:29:41 +03:00
Zhongyi Lu 792be63c5c fix: whitelist in real-ip 2024-04-12 22:03:36 -07:00
Cohee dcd89f2295 Fix public facing messages 2024-04-13 00:13:36 +03:00
Cohee 53386b35c9 Make Reset account functional 2024-04-13 00:11:20 +03:00
Cohee 7183416d1f Check account protection status on startup 2024-04-12 22:04:20 +03:00
Cohee dcbeab0aef Fix absolute paths for data root. Allow setting data root via console args. 2024-04-12 19:53:46 +03:00
Cohee 3e1ff9bc25 Merge branch 'staging' into neo-server 2024-04-12 19:23:10 +03:00
Cohee 9c218455c4 [chore] Run ESLint 2024-04-12 14:22:12 +03:00
Cohee 58359c9682 Control whitelist mode with console flag 2024-04-12 01:33:39 +03:00
Cohee 396eeca73a Change default user handle. Use async template renderer 2024-04-12 00:35:51 +03:00
Cohee d8092ec3eb Merge branch 'staging' into neo-server 2024-04-12 00:01:52 +03:00
sasha0552 7348199f73
Add llama.cpp slots info endpoint (#2070) 2024-04-11 23:53:32 +03:00
Cohee 31ba3cf039 Merge branch 'staging' into neo-server 2024-04-11 21:47:10 +03:00
Cohee 05ae571971 Pass names to Cohere prompt converter 2024-04-11 19:53:45 +03:00
Cohee 58152a60c6 Append example names to converted Google sysprompt 2024-04-11 19:45:50 +03:00
based c4ec97aa50 cleanup 2024-04-11 16:51:05 +10:00
based 34bca69950 system prompt support for gemini 1.5 2024-04-11 16:38:20 +10:00
Cohee 1990a2d9bd Add user snapshot settings management 2024-04-11 01:44:48 +03:00
Cohee c92df1168d Implement change display name 2024-04-11 00:40:01 +03:00
Cohee 01a4aa51f7 Ask for password before resetting settings 2024-04-10 22:34:51 +03:00
Cohee 2306a4e34d Add discreet login mode 2024-04-10 22:00:08 +03:00
Cohee bd4d8847ce Merge branch 'staging' into neo-server 2024-04-10 21:41:03 +03:00
Cohee 5f6d895acf Add attribution links 2024-04-10 21:21:31 +03:00
Cohee c90105e9f6 Merge branch 'staging' into pollinations 2024-04-10 21:14:36 +03:00
Cohee 53baa7aae7 #2051 #2031 Selectable prompt converter for custom OAI type 2024-04-10 21:12:57 +03:00
sasha0552 becd17d7d2
Add some llama.cpp-specific endpoints 2024-04-10 08:11:59 +00:00
Cohee 2b29e14e9f Reset settings option 2024-04-10 03:29:38 +03:00
Cohee 09b44075ed User profile view 2024-04-10 02:09:38 +03:00
Cohee accebd00f5 Stricter handle cleanup 2024-04-10 01:29:35 +03:00
Cohee 189d096834 Admin change password flow 2024-04-10 00:01:03 +03:00
Cohee 31cc6e51b5 Add user backups download 2024-04-09 22:43:47 +03:00
Cohee 411a8ef8a7 Enable CSRF for public endpoints. Split users module. Add rate limiter. 2024-04-09 21:58:16 +03:00
Cohee 497f38111f Merge branch 'staging' into neo-server 2024-04-09 20:26:03 +03:00
Cohee 0594859fb9 #2046 Fix for undefined fields 2024-04-09 10:11:05 +03:00
Cohee 72792ae9f9 Basic account management 2024-04-08 02:38:20 +03:00
Cohee 3f3e23420d Working login flow 2024-04-07 23:08:19 +03:00
Cohee 0230177d27 Optimize server user storage use 2024-04-07 20:36:07 +03:00
Cohee 6be86be0a7 Save user session to cookies 2024-04-07 19:12:22 +03:00
Cohee 0f105e0300 Fix circular deps, add Helmet https://helmetjs.github.io/ 2024-04-07 18:11:23 +03:00
Cohee c6ffe4502a Add user management endpoints 2024-04-07 17:44:40 +03:00
Cohee b07aef02c7 Persist CSRF and cookie secrets across server launches 2024-04-07 16:41:23 +03:00
Cohee 11193896b2 Add data migration procedure 2024-04-07 03:01:55 +03:00
Cohee b07a6a9a78 Update all endpoints to use user directories 2024-04-07 01:47:07 +03:00
Cohee cd5aec7368 Split user directories from public, part 1 2024-04-06 20:09:39 +03:00
Cohee b3b7017bf2 Move default QR and MovingUI to content manager 2024-04-06 17:55:53 +03:00
Cohee 0debe2ca4d they did only move the imagegen towards that api endpoint not upscaling 2024-04-05 22:17:29 +03:00
Cohee f002b2d5cc #2016 Fix NovelAI endpoint 2024-04-05 22:15:50 +03:00
Cohee ee3718ad7a Forward error messages from Cohere streams 2024-04-04 21:20:30 +03:00
Cohee 75ebdf394a Add pollinations as image generation source 2024-04-04 20:40:47 +03:00
Wolfsblvt 3ccb63dd21 Server logging utilize tracking branch
- Use tracking branch instead of hardcoded "origin"
- Remove dev logging message if not on "staging" or "release"
2024-04-02 22:51:43 +02:00
Wolfsblvt 514c40228c Improve server version logging info
- Capture commit date and print that next to the branch
- Info for being on a dev branch
- Info for not being on the latest commit (fetch should've gotten it, if update script was run)
2024-04-02 22:17:21 +02:00
Cohee 9838ba8044 #1994 Add Cohere as a Chat Completion source 2024-04-02 00:20:17 +03:00
Cohee a96bb40505 #1991 Add API key for llama.cpp 2024-03-31 00:27:12 +02:00
Cohee 153f75cf1a Add role selection to Character's Note depth prompt 2024-03-30 23:12:01 +02:00
Cohee c94460714d Whitelist to check listen mode via console 2024-03-30 22:42:51 +02:00
Cohee a17206dd38 Merge branch 'staging' into instruct-rework 2024-03-30 14:56:37 +02:00
Cohee 9c7e29115f
Merge pull request #1989 from kir-gadjello/sd-drawthings-api
Implement drawthings local app api support for sd extension
2024-03-30 14:50:07 +02:00
kir-gadjello dddcac9af8
implement drawthings local app api support for sd extension 2024-03-30 01:12:29 -03:00
Cohee 06d1369f58 Make default instruct/context restorable 2024-03-29 19:39:59 +02:00
Cohee 0551c8023e Move context/instruct templates to default context index 2024-03-28 22:54:37 +02:00
Cohee d02c93e84f Merge branch 'staging' into instruct-rework 2024-03-28 01:34:04 +02:00
Cohee 6ed604593c Copy tags on duplicating 2024-03-28 01:13:54 +02:00
Cohee 06510f25bf Fix double append of example dialogue names in group chats for Claude 2024-03-27 23:37:28 +02:00
based f3b9920f22 actually convert the prompts properly 2024-03-27 15:48:26 +10:00
based 6a51855f19 Update Makersuite models 2024-03-27 13:52:51 +10:00
Cohee 607df2f555 Add ability to insert role-typed prompt injections 2024-03-23 17:36:43 +02:00
Cohee c606cd1295 Add SMEA/DYN controls for NAI Diffusion 2024-03-20 21:23:56 +02:00
Cohee 30c52b5b27 Move prompt-converters.js 1 level up 2024-03-20 01:18:51 +02:00
Cohee abb8bdbc1e Extract API endpoint for moving UI 2024-03-20 01:07:28 +02:00
Cohee b261c8c4a9 Extract API endpoints for images 2024-03-20 00:59:06 +02:00
Cohee 7dcd39c806 Extract API endpoints for quick replies 2024-03-20 00:46:46 +02:00
Cohee d448d4f65b Extract API endpoints for user avatars 2024-03-20 00:39:48 +02:00
Cohee 41528d0423 Add ability to delete UI themes 2024-03-20 00:14:32 +02:00
Cohee 532418c534 Lint fixes 2024-03-17 14:07:33 +02:00
Cohee 3032f47b29 Add import of Agnai chats 2024-03-16 01:11:00 +02:00
Cohee ce756bc4f7 Allow setting altering group greetings with extensions. Add ability to add extensions when creating characters. 2024-03-14 23:10:35 +02:00
Cohee 94230c0891 Set prefill before squashing messages 2024-03-14 14:51:56 +02:00
Cohee 6ac8ef1b48 Add koboldcpp as a multimodal captioning source 2024-03-14 01:03:51 +02:00
Cohee bd223486de Include additional headers for all supported Text Completion types. 2024-03-14 00:48:08 +02:00
Cohee acf36b6107 Add koboldcpp API key/password support 2024-03-14 00:34:09 +02:00
Cohee 5efdecc825 Add new OpenAI embedding models for selection 2024-03-12 21:41:30 +02:00
Kristian Schlikow 44a7dd3d74
Add NomicAI for vectorization (#1922)
* Crudely add NomicAi for vectorization

* Move NomicAI to its own endpoint, properly handle API key

* Adjust clear button html

* Remove leftover nomicai http header code

* Revert changes to openai-vectors.js

* Fix UI issues

* Revert change to settings, fix UI

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-03-12 21:10:25 +02:00
Cohee 6b2374c405 Add function to write extension fields to character cards. 2024-03-12 01:49:05 +02:00
Cohee c9c6d798d9 Fix Claude error in empty chats with no history 2024-03-12 01:17:35 +02:00
Cohee 5d561b64e2 Fix names in completions not getting added when squashing assistant messages 2024-03-12 01:10:53 +02:00
Cohee 2f6ae8d49a Add names for non-sysprompt example messages 2024-03-09 21:10:20 +02:00
Cohee 91d6a139e5
Merge pull request #1906 from DreamGenX/dreamgen_api
Add support for DreamGen API.
2024-03-08 21:16:37 +02:00
Cohee 35ee126c03 Trim whitespace at the end of Claude's prefill.
Otherwise it won't pass validation. I didn't make the rules.
2024-03-08 19:35:49 +02:00
DreamGenX c9c0f238a9 add 'stream' to dreamgen fields 2024-03-08 09:07:26 +01:00
DreamGenX bf787a9445 support dreamgen non-streaming 2024-03-08 08:32:47 +01:00
Cohee 15eb18740e Pass char/user names for Claude example messages converter 2024-03-08 08:31:36 +02:00
DreamGenX 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
Cohee 41e053c40d Fix case if message content is a string 2024-03-06 21:40:51 +02:00
khanonnie 0ba6a562cb
removes leftover debug log 2024-03-05 19:17:14 -06:00
khanonnie 8c273906bc
fixes inline images for Claude 3 when Add Character Names is enabled 2024-03-05 18:35:40 -06:00
Cohee 0a5f12ee31
Merge pull request #1897 from valadaptive/ai-horde-dependency
Un-vendor ai_horde
2024-03-05 21:22:16 +02:00
Cohee 4de9176f1a Fix captioning URL: base + '/messages' 2024-03-05 20:08:40 +02:00
based 3e1d44fc29 remove deprecated option + reverse proxy support in claude vision 2024-03-06 02:47:00 +10:00
valadaptive 4470e87ef9 Un-vendor ai_horde 2024-03-05 08:49:24 -05:00
based 94beaaa581 have to put something in here, claude doesn't like empty messages 2024-03-05 09:57:37 +10:00
based b6897af364 vision inlining 2024-03-05 08:41:57 +10:00
based 5f0bbcacf0 oops 2024-03-05 07:10:59 +10:00
based 64d9c9dc5d anthropic captioning 2024-03-05 07:07:38 +10:00
based ce7fbd5ef8 fix 'add character names' 2024-03-05 05:28:19 +10:00
based b8e8b0ac9e merge messages after system prompt handling (oopsie) 2024-03-05 05:01:36 +10:00
based 04bb882e90 implement messages api and selector for nuclaude models 2024-03-05 04:40:19 +10:00
based adba450752 Merge branch 'staging' of https://github.com/Cohee1207/SillyTavern into nuclaude 2024-03-05 03:15:28 +10:00
Cohee 112e8f224c Use alternate method of determining URLs, consolidate logs format 2024-03-03 16:45:26 +02:00
Bronya-Rand 668d1f0fb9 feat: add `importUUID` API to get Pyg/Janny/Chub bots without link 2024-03-03 03:31:39 +00:00
Cohee 59db5abaef Fix comment 2024-03-02 23:18:34 +02:00
Cohee b490978142 Refactor vector models code 2024-03-02 23:16:18 +02:00
Kristan Schlikow adfb9c5097
Implement TogetherAI as vectorization provider 2024-03-01 23:52:49 +01:00
Cohee 29c4334c46 #1859 Set keep_alive for ollama 2024-02-26 21:09:21 +02:00
based 617ae7d02c ??? 2024-02-27 01:42:22 +10:00
Cohee f962ad5c02 Add OpenRouter as a text completion source 2024-02-25 22:47:07 +02:00
Cohee 3441667336 #1853 Add WI/Script link by entry automation id 2024-02-24 17:22:51 +02:00
Cohee dab9bbb514
Merge pull request #1844 from infermaticAI/InfermaticAI
Add InfermaticAI as a text completion source
2024-02-24 14:28:09 +02:00
Cohee 737a0bd3ae Fix purge extras and mistral vectors 2024-02-23 22:37:00 +02:00
Cohee cb536a7611 Save a list of safe to export secret keys 2024-02-23 21:41:54 +02:00
NWilson f82740a238 Change Non-streaming Handler 2024-02-22 15:51:11 -06:00
berbant bc2010a762
Update secrets.js 2024-02-22 23:55:57 +04:00
NWilson f569424f3e Merge branch 'staging' into InfermaticAI 2024-02-22 08:32:10 -06:00
Cohee beb5e470a2 #1069 Fix hoisting of pristine cards in newest sort 2024-02-22 04:48:46 +02:00
Cohee fb6fa54c7f Fix import fetch HTTP method 2024-02-21 19:57:38 +02:00
Cohee 92af4137a9 Use new export endpoint 2024-02-21 11:28:59 +02:00
Cohee 711fd0517f Merge branch 'staging' into pygimport 2024-02-21 11:26:47 +02:00
NWilson 7c12c836f2 Implement Key Filter 2024-02-20 09:40:35 -06:00
NWilson 030806bf1e Merge remote-tracking branch 'origin/staging' into InfermaticAI 2024-02-19 10:14:06 -06:00
NWilson e55d903613 Support more settings 2024-02-19 09:53:26 -06:00
NWilson 90d5fbc182 Fix non streaming 2024-02-19 09:46:56 -06:00
Cohee 3c2113a6e7 Add ability to preserve file names when loading from assets downloader 2024-02-19 00:17:23 +02:00
Cohee 0391179c3c Remove HTTP/2 workaround for pygsite 2024-02-17 17:04:37 +02:00
Cohee c20a9fb5f5 Add HTTP/2 workaround for pygsite import 2024-02-17 03:52:45 +02:00
Cohee 02a2e26e2b Merge branch 'staging' into pygimport 2024-02-17 02:23:18 +02:00
Cohee b072057594 [skip ci] Code format 2024-02-16 20:44:54 +02:00
Cohee c06fe6abfc Add character asset type 2024-02-16 20:42:56 +02:00
Cohee 7fbef32869 Use uuid extraction from Pygsite URL 2024-02-16 20:24:06 +02:00
NWilson c6c73fedad Key Fix 2024-02-16 10:23:26 -06:00
Cohee c8b0030f6e Extract PNG read/write methods 2024-02-16 18:03:56 +02:00
NWilson 8075e4cd1e Changes 2024-02-16 09:07:06 -06:00
NWilson b5887960b6 Merge branch 'release' into InfermaticAI 2024-02-16 08:53:04 -06:00
berbant 187ecc2046
Update chat-completions.js
This fix will let SillyTavern show up in the Activity List and App Showcase List (app rankings) on openrouter.ai with the right name and the correct link. Right now, all the requests from ST on their end look like 'http://127.0.0.1:'.
2024-02-15 16:14:33 +04:00
Cohee 6b669bbc22 #1809 Add gitkeep to user 2024-02-10 21:15:59 +02:00
Cohee 18f84979f2 Use SSE streaming for MakerSuite 2024-02-10 02:43:50 +02:00
Cohee 58c3d3eb7f Use ooba API key in multimodal request 2024-02-07 19:31:38 +02:00
Cohee c3129da879 [skip ci] Lint fix 2024-02-07 19:28:34 +02:00