Commit Graph

2922 Commits

Author SHA1 Message Date
Cohee
afe3e824b1 Unblock left swipe on swipeId overflow. 2023-12-11 21:16:09 +02:00
Cohee
e713021737
Merge pull request #1511 from valadaptive/more-kobold-cleanups
More Kobold cleanups
2023-12-11 20:59:49 +02:00
Cohee
05ab147209 Fix swipes getting stuck when no Horde models selected 2023-12-11 20:46:34 +02:00
Cohee
27782b2f83 Fix united version comparison 2023-12-11 20:44:29 +02:00
valadaptive
ce8cc59e4d Remove fetchJSON 2023-12-11 13:32:38 -05:00
Cohee
7482a75bbd
Merge pull request #1493 from valadaptive/generate-cleanups
Clean up Generate(), part 1
2023-12-11 20:21:32 +02:00
Cohee
d38a4dc6c1 Fix abort group generation 2023-12-11 20:03:31 +02:00
Cohee
0302686a96 Return from Generate if calling circuit breaker 2023-12-11 19:07:33 +02:00
Cohee
e96fb0c1b5 Fix group wrapper not resolving to a valid text 2023-12-11 19:00:42 +02:00
Cohee
0fcf8fd491 Typing indicator fixed 2023-12-11 18:23:00 +02:00
Cohee
e8678ea5df
Merge pull request #1512 from valadaptive/recommend-eslint
Recommend the ESLint extension to VSCode users
2023-12-11 17:17:23 +02:00
Cohee
3b33c3e51a Add editorconfig 2023-12-11 17:17:04 +02:00
Cohee
c48e447c42 Add rows and button text to import window 2023-12-11 16:23:47 +02:00
Cohee
17105568f4 Reduce hard coded anim. durations 2023-12-11 16:23:21 +02:00
Cohee
e7c2975ab0 Fix adv.defs overlap with past chats. Close CFG with Escape 2023-12-11 15:39:58 +02:00
Cohee
c6bd3ef255 Fix /sys continue in groups 2023-12-11 15:08:20 +02:00
valadaptive
f1cd7e89db Recommend the ESLint extension to VSCode users 2023-12-10 21:39:02 -05:00
valadaptive
42d4ffe5e8 Remove Kobold "canUse(...)" functions
Replace them all with a versionCompare helper function which we can call
directly with the minimum version constants.
2023-12-10 20:39:21 -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
valadaptive
3ab1962b84 Improve circuit breaker
We now track the loop counter as a parameter of Generate that we
decrement with every recursive call, rather than a global variable,
and it *should* now work with quiet prompt generation.
2023-12-10 18:46:28 -05:00
valadaptive
3d7c901464 Remove looping backoff behavior 2023-12-10 18:35:46 -05:00
Cohee
23e6a10cb5 Unsqueeze advanced defs rows 2023-12-11 01:33:56 +02:00
valadaptive
315d981804 Reject generation on circuit breaker error 2023-12-10 18:13:34 -05:00
Cohee
7450112e9b Unbust user continue in group chats 2023-12-11 00:02:49 +02:00
Cohee
e8742a3e9d Merge branch 'release' into staging 2023-12-10 23:28:10 +02:00
Cohee
2e6ab8be46 Add Object.hasOwn polyfill 2023-12-10 23:28:00 +02:00
Cohee
05b08f1ce2 Don't await delay promise 2023-12-10 21:51:16 +02:00
Cohee
2e50efc35c Limit waiting for TTS to init to 1 second on chat change 2023-12-10 21:50:52 +02:00
valadaptive
ae9445e500 Reject on data.error 2023-12-10 13:56:31 -05:00
valadaptive
5fd466b53f Fix generateQuietPrompt 2023-12-10 13:54:39 -05:00
Cohee
420d186823 Add reduced motion toggle 2023-12-10 20:02:25 +02:00
valadaptive
33f969f097 Have Generate() return a promise
Generate(), being async, now returns a promise-within-a-promise.
If called with `let p = await Generate(...)`, it'll wait for generation
to *start*. If you then `await p`, you'll wait for generation to
*finish*. This makes it much easier to tell exactly when generation's
done. generateGroupWrapper has been similarly modified.
2023-12-10 12:30:10 -05:00
Cohee
13e016f3e5
Merge pull request #1508 from LenAnderson/tts-skip-codeblocks-option
add TTS option to skip codeblock narration
2023-12-10 19:28:16 +02:00
valadaptive
03884b29ad Always call resolve in Generate()
This lets us get rid of the janky hack in group-chats to tell when a
message is done generating.
2023-12-10 12:26:30 -05:00
valadaptive
f5d2e50f5e Remove isGenerationAborted
Just check the AbortSignal.
2023-12-10 12:24:18 -05:00
Cohee
f8a903e1fd #1506 Fix big markdown images 2023-12-10 18:45:55 +02:00
Cohee
dbd52a7994
Merge pull request #1482 from valadaptive/sse-stream
Refactor server-sent events parsing
2023-12-10 18:32:19 +02:00
LenAnderson
bf88829b03 add option to skip codeblock narration 2023-12-10 16:32:10 +00: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
Cohee
3653c8636e
Merge pull request #1501 from LenAnderson/qr-editor-tab-support
Add support for tab and shift-tab in QR editor
2023-12-10 16:50:30 +02:00
Cohee
af89cfa870 Code clean-up 2023-12-10 16:48:25 +02:00
Cohee
5054de247b Merge branch 'staging' into qr-editor-tab-support 2023-12-10 16:36:28 +02:00
Cohee
ae01e7419f
Merge pull request #1503 from valadaptive/tokenizers-cleanup
Tokenizers cleanup
2023-12-10 16:35:52 +02:00
Cohee
9acef0fae6 Horde doesn't support API tokenizers 2023-12-10 16:21:06 +02:00
Cohee
f54bf99006 Fix token ids not displaying in "API_CURRENT" mode for TextGen 2023-12-10 16:09:00 +02:00
Cohee
6957d9e7cf Fix display names of Best match tokenizers 2023-12-10 16:03:25 +02:00
Cohee
6e5eea5dba Unbreak previously selected API tokenizer in dropdown 2023-12-10 15:56:38 +02:00
Cohee
d5140142fb Merge branch 'staging' into tokenizers-cleanup 2023-12-10 15:51:15 +02:00
Cohee
e0d0e1dd66
Merge pull request #1502 from valadaptive/status-cleanup
Clean up getStatus code
2023-12-10 15:49:37 +02:00