Commit Graph

595 Commits

Author SHA1 Message Date
fb25a90532 add GENERATION_STARTED event 2023-12-17 17:45:23 +00:00
583f786d74 finish mistral frontend integration + apikey status check 2023-12-16 07:15:57 +10:00
ef17702f6a Merge branch 'staging' into bg-load-improvements 2023-12-15 17:02:10 +02:00
6c16b94f9d Merge pull request #1540 from valadaptive/refactor-device-check
Refactor mobile device check
2023-12-15 17:01:32 +02:00
0ee19d2ede Set background client-side 2023-12-15 05:45:21 -05:00
7897206cf8 Add a pre-loading screen cover
This matches the loader color and exists to prevent a flash of unstyled
content when the page first loads and JS has not yet run.
2023-12-15 05:34:33 -05:00
fbdfa05f81 Replace usage of getDeviceInfo with isMobile
We were using getDeviceInfo to check whether we were on a desktop or a
mobile device. This can be done more simply with isMobile, which means
we can stop exporting getDeviceInfo.
2023-12-14 18:37:54 -05:00
769cc0a78f Rename settings API endpoints 2023-12-14 16:47:03 -05:00
cde9903fcb Fix Bison models 2023-12-14 22:18:34 +02:00
ca87f29771 added streaming for google models 2023-12-14 21:03:41 +10:00
be396991de finish implementing ui changes for google models 2023-12-14 11:53:26 +10:00
69e24c9686 change palm naming in UI 2023-12-14 11:14:41 +10:00
0cd92f13b4 Merge branch 'staging' into separate-kobold-endpoints 2023-12-14 01:33:36 +02:00
b957e3b875 Merge pull request #1518 from valadaptive/separate-ooba-endpoints
Move Ooba/textgenerationwebui endpoints into their own module
2023-12-14 01:27:05 +02:00
274605a07c Rename Kobold-related endpoints 2023-12-12 16:42:12 -05:00
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
7732865e4c Another explanatory comment 2023-12-12 16:36:47 -05:00
87cbe361fc Cache stopping strings rather than skipping them 2023-12-12 16:32:54 -05:00
3d7706e6b3 #1524 Skip stop strings clean-up during streaming 2023-12-12 23:09:39 +02:00
83f2c1a8ed #1524 Add FPS limiter to streamed rendering 2023-12-12 22:11:23 +02:00
9176f46caf Add /preset command 2023-12-12 19:14:17 +02:00
a9a05b17b9 Merge pull request #1517 from LenAnderson/firstIncludedMessageId
Add macro for first included message in context
2023-12-12 01:24:57 +02:00
299749a4e7 Add prerequisites for websearch extension 2023-12-12 01:08:47 +02:00
2bdd3672d4 add macro for first included message in context 2023-12-11 23:06:21 +00:00
1b11ddc26a Add vector storage to WI scanning 2023-12-11 22:47:26 +02:00
afe3e824b1 Unblock left swipe on swipeId overflow. 2023-12-11 21:16:09 +02:00
e713021737 Merge pull request #1511 from valadaptive/more-kobold-cleanups
More Kobold cleanups
2023-12-11 20:59:49 +02:00
05ab147209 Fix swipes getting stuck when no Horde models selected 2023-12-11 20:46:34 +02:00
7482a75bbd Merge pull request #1493 from valadaptive/generate-cleanups
Clean up Generate(), part 1
2023-12-11 20:21:32 +02:00
0302686a96 Return from Generate if calling circuit breaker 2023-12-11 19:07:33 +02:00
c48e447c42 Add rows and button text to import window 2023-12-11 16:23:47 +02:00
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
1fbf4394c8 Separate Kobold Horde status function 2023-12-10 20:16:07 -05:00
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
3d7c901464 Remove looping backoff behavior 2023-12-10 18:35:46 -05:00
315d981804 Reject generation on circuit breaker error 2023-12-10 18:13:34 -05:00
ae9445e500 Reject on data.error 2023-12-10 13:56:31 -05:00
5fd466b53f Fix generateQuietPrompt 2023-12-10 13:54:39 -05:00
420d186823 Add reduced motion toggle 2023-12-10 20:02:25 +02:00
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
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
dbd52a7994 Merge pull request #1482 from valadaptive/sse-stream
Refactor server-sent events parsing
2023-12-10 18:32:19 +02:00
d5140142fb Merge branch 'staging' into tokenizers-cleanup 2023-12-10 15:51:15 +02:00
e0d0e1dd66 Merge pull request #1502 from valadaptive/status-cleanup
Clean up getStatus code
2023-12-10 15:49:37 +02:00
6be1c6ff10 Merge pull request #1504 from valadaptive/store-compiled-templates
Cache compiled Handlebars templates
2023-12-10 15:32:52 +02:00
5f1683f43a More input padding and stricter sanitation 2023-12-10 15:07:39 +02:00
c48bc8a76e Cache compiled Handlebars templates
Since we already have a template cache, it makes sense to store the
templates in it *after* compiling them, to avoid the overhead of
re-compiling them every time we call renderTemplate.

I've also changed the cache from an object to a Map--it's more
semantically correct, and avoids weird edge cases like a template named
"hasOwnProperty" or some other function that exists as an object
property.
2023-12-09 21:29:36 -05:00
499d158c11 Remove last usage of getAPIServerUrl
Now that we're not using this in the tokenizers code, we can remove it.
2023-12-09 20:55:34 -05:00
babb127aee Move NovelAI status functions over to the rest
Have all the get(...)Status and event handler registrations in the same
areas, rather than having the NovelAI ones far away. I want to
eventually move all the API-specific stuff into separate modules, but
this will make things cleaner for the time being.
2023-12-09 18:41:51 -05:00
0ea0399ed1 Separate getStatus into Kobold/textgen versions
This adds a bit of duplicate code for the time being, but ultimately
makes the code less confusing because we only need to include the bits
that are relevant to the specific API in each function. We can also
remove API parameters that are useless depending on the endpoint.
2023-12-09 18:39:19 -05:00