Commit Graph

439 Commits

Author SHA1 Message Date
Cohee
cbc14279e7 Display node version on startup 2024-03-15 15:30:13 +02:00
Cohee
a7aa5fccf9 Update startup scripts (see below)
1. Set NODE_ENV to production and skip dev dependencies when running from scripts.
2. Remove pkg leftovers. Indicate current environment instead.
2024-03-06 22:09:31 +02:00
based
64d9c9dc5d anthropic captioning 2024-03-05 07:07:38 +10:00
Cohee
7acd2916ec Fix image uploading if character name contains a dot 2024-03-03 20:39:20 +02:00
Cohee
4b845dd442 Add backend for transformers.js whisper 2024-02-02 00:36:40 +02:00
LenAnderson
3722bd25d4 Merge branch 'staging' into qr-rewrite 2023-12-23 22:05:10 +00:00
Cohee
f1453a3e8a Await plugin cleanup 2023-12-23 19:05:21 +02:00
Cohee
ea85cfcbdd Plugin cleanup and validation fixes 2023-12-23 19:03:13 +02:00
LenAnderson
41a88e165c add deletequickreply request handler 2023-12-22 13:45:37 +00:00
valadaptive
7ae0e05946 Allow plugins to specify "exit" functions 2023-12-17 12:26:34 -05:00
Cohee
16795dd5cc Add server plugin loader 2023-12-16 22:21:40 +02:00
Cohee
dd7ac914a6 Rename basic auth middleware 2023-12-15 18:43:00 +02:00
Cohee
fad718baa1
Merge pull request #1537 from valadaptive/separate-whitelist-middleware
Move whitelist middleware to its own module
2023-12-15 18:38:37 +02:00
Cohee
ef17702f6a Merge branch 'staging' into bg-load-improvements 2023-12-15 17:02:10 +02:00
Cohee
6c16b94f9d
Merge pull request #1540 from valadaptive/refactor-device-check
Refactor mobile device check
2023-12-15 17:01:32 +02:00
valadaptive
0ee19d2ede Set background client-side 2023-12-15 05:45:21 -05:00
Cohee
332ab81524
Merge pull request #1535 from valadaptive/separate-settings-endpoints
Move settings endpoints into their own module
2023-12-15 01:49:29 +02:00
valadaptive
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
valadaptive
b0827ca815 Remove /notes endpoint
It's been unused since docs were moved to their own site.
2023-12-14 18:20:39 -05:00
valadaptive
1ed9267174 Move whitelist middleware to its own module 2023-12-14 17:36:41 -05:00
valadaptive
d935b2a132 Move settings endpoints to their own module 2023-12-14 16:56:45 -05:00
valadaptive
769cc0a78f Rename settings API endpoints 2023-12-14 16:47:03 -05:00
based
698850b514 Merge remote-tracking branch 'fork/staging' into gemini
# Conflicts:
#	server.js
#	src/endpoints/prompt-converters.js
#	src/endpoints/tokenizers.js
2023-12-15 01:35:17 +10:00
based
d5bcd96eef message inlining vision support 2023-12-15 01:28:54 +10:00
Cohee
00687a9379 Merge branch 'staging' into separate-altscale-endpoints 2023-12-14 17:12:19 +02:00
Cohee
907dc610ab Merge branch 'staging' into separate-openai-endpoints 2023-12-14 15:17:03 +02:00
based
0b7c1a98cd added google vision caption support 2023-12-14 22:37:53 +10:00
based
ca87f29771 added streaming for google models 2023-12-14 21:03:41 +10:00
based
e26159c00d refactor and rework palm request to work with the 'content' format and added an endpoint for googles tokenizer 2023-12-14 15:49:50 +10:00
kingbri
3d8160cf25 Server: Update CORS proxy body limit
The body-parser middleware only accepted 50mb of data, bump this
value to 200mb.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-12-13 21:39:07 -05:00
based
69e24c9686 change palm naming in UI 2023-12-14 11:14:41 +10:00
valadaptive
b55ea8df04 Move alt Scale generation to its own module 2023-12-13 18:54:12 -05:00
valadaptive
22e048b5af Rename generate_altscale endpoint 2023-12-13 18:53:46 -05:00
valadaptive
dba66e756a Move chat completions API endpoints to module 2023-12-13 18:53:22 -05:00
valadaptive
92bd766bcb Rename chat completions endpoints
OpenAI calls this the "Chat Completions API", in contrast to their
previous "Text Completions API", so that's what I'm naming it; both
because other services besides OpenAI implement it, and to avoid
confusion with the existing /api/openai route used for OpenAI extras.
2023-12-13 18:52:08 -05:00
Cohee
c8bc9cf24c Fix route name 2023-12-14 01:37:51 +02:00
Cohee
0cd92f13b4 Merge branch 'staging' into separate-kobold-endpoints 2023-12-14 01:33:36 +02:00
Cohee
52de5869fe Rename file, add missing fetch 2023-12-13 02:22:35 +02:00
valadaptive
2c159ff93f Move Kobold API endpoints to their own module 2023-12-12 16:42:12 -05:00
valadaptive
274605a07c Rename Kobold-related endpoints 2023-12-12 16:42:12 -05:00
valadaptive
35c2f8bf66 Move text completions API endpoints to own module 2023-12-12 16:41:16 -05:00
valadaptive
5b3c96df50 Rename /textgenerationwebui endpoint
I'd like to migrate over to using "textgen" to mean text-generation APIs
in general, so I've renamed the /textgenerationwebui/* endpoints to
/backends/text-completions/*.
2023-12-12 16:40:14 -05:00
valadaptive
ce8cc59e4d Remove fetchJSON 2023-12-11 13:32:38 -05:00
valadaptive
d33cb0d8d1 Clarify getstatus API
Instead of "version" and "koboldVersion", have "koboldUnitedVersion" and
"koboldCppVersion", the latter of which is null if we're not connected
to KoboldCpp.
2023-12-10 20:34:11 -05:00
valadaptive
1fbf4394c8 Separate Kobold Horde status function 2023-12-10 20:16:07 -05:00
Cohee
dbd52a7994
Merge pull request #1482 from valadaptive/sse-stream
Refactor server-sent events parsing
2023-12-10 18:32:19 +02:00
valadaptive
04e92efe29 Move API tokenization endpoint into /tokenizers
Requires extracting some more functions out of server.js.
2023-12-09 19:35:49 -05:00
valadaptive
8bad059a62 Rename /tokenize_via_api endpoint
No redirect for this since I don't expect any extensions to be calling this directly.
2023-12-09 19:29:24 -05:00
Cohee
a8224c16de Fix order of middleware application
Previously: CSRF => auth => whitelist
Now: auth => whitelist => CSRF
2023-12-09 19:56:26 +02:00
Cohee
44ac2ca4e6 Avoid returning 401 as API response code 2023-12-09 15:11:35 +02:00