Commit Graph

716 Commits

Author SHA1 Message Date
Cohee 83c77c1f18 Split group weight and trigger% 2024-05-06 17:00:42 +03:00
Cohee 181b5aff97 Add Groq as chat completion source 2024-05-05 18:53:12 +03:00
Cohee 39a54d158d Per-entry group scoring 2024-05-05 00:42:33 +03:00
Cohee 7bfd666321 Add llama 3 tokenizer 2024-05-03 23:59:39 +03:00
Cohee 3c2017c7b8 Fix Mistral's Chat Completion moment 2024-05-03 20:22:03 +03:00
Cohee 7b87f44518 Clean-up API-specific settings 2024-05-03 20:02:13 +03:00
sasha0552 2bd239fe81
Initial vLLM support 2024-05-02 22:40:40 +00:00
Cohee eb4cae4e6d Add WL to config. Code clean-up. 2024-05-01 19:52:34 +03:00
Adam 300b68177b #1958 added support for generic url downloading (current whitelist: discordapp.com, catbox.moe) 2024-04-29 23:42:50 -05:00
Cohee 2847b5ee45 [skip ci] Fix format 2024-04-27 23:02:51 +03:00
Cohee 943906d8a3 Fix UTF-8 file name uploads
https://github.com/expressjs/multer/issues/1104
2024-04-27 22:58:32 +03:00
Cohee cbedfa4664 Use atomic write 2024-04-27 22:02:04 +03:00
Cohee 01ccc32274 Cache config.yaml reads 2024-04-27 21:59:57 +03:00
Cohee 3b153a6c9b Check that path exists before serving 2024-04-27 21:54:28 +03:00
Cohee 5ac0390446 Fix naming convention for LB extension fields 2024-04-27 21:03:55 +03:00
Cohee 413cec8a9f Merge branch 'staging' into wi-entry-inclusion-prio 2024-04-27 18:00:00 +03:00
Wolfsblvt a48a9318c1 Add groupOverride to server endpoint too 2024-04-27 04:49:08 +02:00
Cohee 4c9d52422b [chore] ESLint and JSDoc 2024-04-26 22:46:13 +03:00
Cohee f4ba1f68ef
Merge pull request #2136 from BlueprintCoding/release
Added import function for AICharacterCards.com cards
2024-04-26 22:42:04 +03:00
Cohee 212e61d2a1 Lazy initialization of Claude tokenizer. Add JSDoc for tokenizer handlers 2024-04-26 15:17:02 +03:00
Cohee 1b60e4a013 Init user storage module before server listening 2024-04-26 14:09:40 +03:00
Blueprint Coding 305afb3713 Added import function for AICharacterCards.com cards
Added ability to import cards directly from aicharactercards.com via it's api like Chub and Janny.
Video of it in action: https://streamable.com/gbfdtw

Just pass the last two slash vars from the url (the author and card title) from a page. EX: aicharcards/the-game-master to:
https://aicharactercards.com/wp-json/pngapi/v1/image/

In this example: https://aicharactercards.com/wp-json/pngapi/v1/image/aicharcards/the-game-master
2024-04-24 18:04:17 -06:00
Cohee 01e3964232 Auto-backup settings every 10 minutes. Increase backups limit to 50. 2024-04-24 23:45:49 +03:00
Cohee 51014e7a8d Fix VRM assets console spam 2024-04-24 10:54:55 +03:00
Cohee 530bf81940 #2127 Encode export PNG name 2024-04-24 10:48:08 +03:00
Cohee 71f41d5233 Fix server crash in auto login 2024-04-23 21:11:47 +03:00
Cohee 75372ad0cc Use Map for caches instead of objects 2024-04-23 16:15:54 +03:00
joenunezb 890cf81627 Fix: InformaticAI response without message in choices 2024-04-23 03:56:50 -07:00
Cohee 4370db6bdc Implement World Info activation using Vector Storage 2024-04-23 03:09:52 +03:00
Cohee 2f45f50d37 Add config value for forwarded IPs whitelisting 2024-04-22 15:52:59 +03:00
Cohee 41ad7c5d26 Verify data bank attachments 2024-04-22 02:34:50 +03:00
Cohee bc9c70556e Clean-up mentions of /public/ 2024-04-21 23:53:46 +03:00
Cohee 15f0e491bf Fix Perplexity generation on neo-server 2024-04-21 00:52:03 +03:00
Cohee db78346bef Add YT script loader for data bank 2024-04-20 19:58:29 +03:00
Cohee b3bbec83b6 Merge branch 'staging' into neo-server 2024-04-20 02:56:05 +03:00
Cohee 2a2a63c52c Add Perplexity as Chat Completion source 2024-04-20 00:09:38 +03:00
Cohee d6fd351330
Merge pull request #2105 from isaac-mcfadyen/fs-renamefile-fix
Changed fs.renameSync() to fs.copyFileSync()
2024-04-19 01:13:50 +03:00
Cohee 25cb598694 Add Cohere as embedding source 2024-04-19 00:07:12 +03:00
Isaac McFadyen 15a8adb0b9
Changed fs.cpSync to use recursive copying 2024-04-18 16:04:04 -04:00
Isaac McFadyen 3822ae9356
Switched fs.renameSync to fs.copyFileSync 2024-04-18 15:50:27 -04:00
Cohee 9a1ea7f226 Implement Data Bank vectors querying 2024-04-17 02:09:22 +03:00
Cohee 8546490bcc Improve Scale JWT error handling 2024-04-16 18:59:01 +03:00
Cohee 3dcea41c4e Preserve a query string when redirecting to and from login 2024-04-16 18:44:11 +03:00
Cohee f947c1304a Disable TTL on user accounts.
The biggest skill issue so far.
2024-04-16 02:49:30 +03:00
Cohee 242d57c14b Add Data Bank manager 2024-04-16 02:14:34 +03:00
Cohee 0263be8c1f Merge branch 'staging' into neo-server 2024-04-15 00:26:52 +03:00
Cohee 4a553e1fc8 Merge branch 'release' into staging 2024-04-15 00:26:43 +03:00
Cohee a2e6d1da4f Fix loading plugins from default exports 2024-04-14 23:24:03 +03:00
Cohee 607e85639c Code clean-up 2024-04-14 19:31:38 +03:00
Cohee 9cb777a4e9 Increase default avatar size 400x600 => 512x768 2024-04-14 17:36:48 +03:00
Ondřej Sakala 5ce625fb6b added a web-search toggle for Cohere API 2024-04-14 02:25:11 +02:00
Cohee e8e3834fc0 Merge branch 'staging' into neo-server 2024-04-13 20:06:47 +03:00
Cohee 8ae9212cc5 #2075 Fix Draw Things auth 2024-04-13 20:02:54 +03:00
Cohee 3a4405016c #2075 Fix Draw Things auth 2024-04-13 20:01:17 +03:00
Cohee b340863d52 Auto-extend session if loading the home page 2024-04-13 19:12:50 +03:00
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