Commit Graph
54 Commits
Author SHA1 Message Date
Cohee 5c82ccf435 Refactor endpoints/chats.js
1. Move formatBytes utility to util.js
2. Fix type error related to dates sorting
3. Add type to backupFunctions map
2024-12-12 14:07:37 +02:00
Cohee 3849908fe1 Add maxTotalChatBackups config.yaml value 2024-12-07 15:37:57 +02:00
Cohee 373a0ad321 Add config.yaml value for cards cache capacity. 2024-12-05 12:59:03 +00:00
Cohee 095d19cda7 Rename LimitedMap => MemoryLimitedMap 2024-11-29 12:33:48 +00:00
Cohee c873362d01 Safer estimation of possibly undefined values 2024-11-29 01:28:10 +02:00
Cohee 52606616c4 Add 100MB limit to parsed characters cache 2024-11-29 01:06:10 +02:00
Cohee a32dd436d7 Node: Replace global with globalThis 2024-10-18 09:13:25 +00:00
Cohee 4fcad0752f [chore] Fix type errors 2024-10-11 21:33:36 +03:00
Cohee a0889a15fd Explicitly import node process 2024-10-11 10:43:29 +03:00
Cohee a0e6030836 Simplify node imports 2024-10-11 00:28:17 +03:00
Cohee 1616e7e067 Explicitly import Buffer. Specify jsdoc local extensions 2024-10-10 23:36:22 +03:00
Cohee d52b4fbbde Node: Migrate to ES Modules 2024-10-10 22:37:22 +03:00
Cohee 81251b073a Implement downloadable tokenizers
Closes #2574, #2754
2024-09-06 16:28:34 +00:00
Cohee 3806dcf9fb Fix uuidv4 on Node 18
Closes #2718
2024-08-27 09:35:00 +00:00
Cohee ff834efde3 Exit server process on config.yaml read errors 2024-08-26 11:06:30 +03:00
Cohee cb7185fa12 [chore] Fix grammar, add JSDocs 2024-08-15 20:29:17 +03:00
Cohee a08b3ec7fc Sort gallery images by date 2024-08-15 00:40:08 +03:00
Cohee ce18b33e73 Set the maximum number of backups via config 2024-07-01 01:17:56 +03:00
Cohee d1ed983106 Use crypto UUID if available 2024-06-10 14:18:38 +03:00
Cohee 60b7164c28 Import character icon from CHARX 2024-06-08 22:37:17 +03:00
Cohee 20d12dc98e (WIP) Import JSON from .charx 2024-06-02 00:28:41 +03:00
Cohee e66b270811 Change backups to be user data scoped 2024-05-28 17:49:34 +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 01e3964232 Auto-backup settings every 10 minutes. Increase backups limit to 50. 2024-04-24 23:45:49 +03:00
Cohee bc9c70556e Clean-up mentions of /public/ 2024-04-21 23:53:46 +03:00
Cohee b07aef02c7 Persist CSRF and cookie secrets across server launches 2024-04-07 16:41:23 +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
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 0391179c3c Remove HTTP/2 workaround for pygsite 2024-02-17 17:04:37 +02:00
Cohee b7a338e130 Move all Horde requests to server 2023-12-22 22:10:09 +02:00
Cohee b782a8cc03 Add util for trim v1 2023-12-21 22:40:08 +02:00
Cohee 3001db3a47 Add additional parameters for custom endpoints 2023-12-20 23:39:10 +02:00
Cohee ac70a0a592 Add TogetherAI for image generation 2023-12-18 03:33:05 +02:00
Cohee 0d0dd5e170 Revert old comment 2023-12-13 02:50:50 +02:00
Cohee 52de5869fe Rename file, add missing fetch 2023-12-13 02:22:35 +02:00
Cohee b107ace719 Avoid sending 401 in forwarded responses.
Status code 401 resets the client Basic auth, so we replace it with 400. This can produce an interesting artifact as "400 Unauthorized", but it's not out of spec.

"The reason phrases listed here are only recommendations -- they can be replaced by local equivalents or left out altogether without affecting the protocol."

https://www.rfc-editor.org/rfc/rfc9110.html#name-overview-of-status-codes
2023-12-10 18:00:04 +02:00
valadaptive 055d6c4337 Properly forward status codes from streams 2023-12-07 18:06:17 -05:00
valadaptive 32c86c1e95 Move backgrounds endpoints into separate file 2023-12-07 15:24:05 -05:00
valadaptive e870c35613 Move chat endpoints into separate file 2023-12-06 19:59:32 -05:00
valadaptive 9c850b0b0c Fix double file extension on uploaded images 2023-12-06 17:29:10 -05:00
valadaptive 5096e70c11 Move client-relative path logic to helper function 2023-12-06 17:22:37 -05:00
valadaptive a457484c2d Move character endpoints into their own module 2023-12-04 17:35:06 -05:00
Cohee 64a3564892 lint: Comma dangle 2023-12-02 22:06:57 +02:00
Cohee e541c2b186 #1412 Add randomized user ids to OpenAI 2023-11-29 00:11:10 +02:00
Cohee a7024a1d34 Migrate to config.yaml 2023-11-25 23:45:33 +02:00
artisticMink 6eb6527d11 Prototyping 2023-11-06 16:13:34 +01:00
Cohee 11e7ca76e1 Use simpleGit to get app version 2023-09-17 14:27:41 +03:00