henk717
8b175df26e
Merge pull request #11 from VE-FORBRYDERNE/united
...
Remove typing.Literal (a Python 3.8+ feature)
2021-08-26 21:40:42 +02:00
63a4048053
Remove typing.Literal (a Python 3.8+ feature)
2021-08-26 15:38:58 -04:00
henk717
36d5f249b7
Merge pull request #10 from VE-FORBRYDERNE/big-o
...
A fix for world info keyword scanning which I broke in the previous pull request, and more triggers for scrolling to bottom
2021-08-26 21:35:22 +02:00
0fbf620f22
Added scroll-to-bottom for closing genseqs/W Info
...
Scroll time is halved now also.
2021-08-26 15:15:42 -04:00
75c68c2b78
Fix world info depth being ignored
2021-08-26 12:50:17 -04:00
henk717
829d309abd
Merge pull request #9 from VE-FORBRYDERNE/big-o
...
Optimization for very large stories
2021-08-26 11:06:20 +02:00
d7605a717b
Merge branch 'united' into big-o
...
This resolves two merge conflicts that arose because this branch was
a few commits behind.
2021-08-26 01:37:40 -04:00
6a0299837c
Make the green editing flash !important
2021-08-26 01:22:07 -04:00
8fd8612cca
Adventure mode colouring now controlled by a CSS class
...
So that we can just toggle the class instead of having aiserver.py send
back the entire story.
2021-08-26 01:06:57 -04:00
27c7baab92
Prevent some errors when the prompt is the only chunk
2021-08-25 23:58:12 -04:00
b0d64985bb
Fix Retry and Back buttons popping the wrong chunk
2021-08-25 19:56:57 -04:00
henk717
bbd5bd0cd7
Merge pull request #8 from VE-FORBRYDERNE/misc
...
General usability fixes
2021-08-26 01:56:42 +02:00
796f5ffd05
Make vars.actions a dictionary instead of a list
2021-08-25 19:28:26 -04:00
5604d7f317
Replace non-breaking spaces with regular spaces
2021-08-25 19:25:57 -04:00
5603bf0584
Hide messages on updatechunk and removechunk
2021-08-25 19:22:35 -04:00
6dcd7888c8
Change "recieved" to "received"
2021-08-25 14:55:26 -04:00
c3528e6221
Retry after Back no longer pops an extra story chunk
2021-08-25 14:54:51 -04:00
cf677c60fc
Stability fixes for back/retry re genseqs/useprompt
...
* Back and Retry buttons no longer pop a story chunk while in the
"Select sequence to keep" menu
* No longer freezes if you retry with no story chunks beyond the initial
prompt chunk
* When "Always Add Prompt" is on, allow Retry even if the prompt is the
only chunk in the story
* Added error messages for Back and Retry buttons
2021-08-25 14:42:37 -04:00
henk717
d848d03d60
Merge pull request #7 from VE-FORBRYDERNE/wi-constant
...
Constant world info keys
2021-08-25 20:14:19 +02:00
henk717
9d2e21de1b
Updated requirements.txt
...
ColabKobold already had this, we need the requirements.txt updated as well since Colab does not use Conda.
2021-08-25 14:30:37 +02:00
henk717
3da0c3d24a
Remote improvements
...
Some colab's use KoboldAI as a subprocess, rather than making that to complicated for Colab developers its better to just dump the Cloudflare link to a log, in addition to showing the message on screen. That way if KoboldAI itself gets filtered you can easily cat the link or use the existing link grabbing methods.
2021-08-25 13:57:38 +02:00
b52f782d92
Disable post-edit blurring and the curtain
...
Because we don't need them anymore.
This, combined with the chunk optimization, will allow you to
seamlessly continue editing a different chunk after you've finished
editing your current one; e.g. if you edit a chunk and use arrow keys,
backspace or the mouse to select a different chunk, you can immediately
start editing your new chunk without it defocusing.
This patch really has killed two birds with one stone, eh?
Thanks, Javalar!
2021-08-25 01:21:01 -04:00
cbdf3fa037
Display names of problematic story JSON files
2021-08-24 19:29:40 -04:00
cfb622b47f
Merge https://github.com/KoboldAI/KoboldAI-Client/pull/58 into misc
2021-08-24 19:28:39 -04:00
b1c6aee8d3
Integrate inline chunk editor and Adventure mode with Javalar's branch
2021-08-24 19:02:52 -04:00
735fc9431b
Still HTML-escape chunks if Adventure is off
...
(cherry picked from commit 3409d8c12e3fbb1e3232f2df82740b012e8f3604)
2021-08-24 18:46:34 -04:00
09030573e5
Broadcast updatechunk and removechunk
2021-08-24 18:40:12 -04:00
62ad2f0228
Code indentation consistency
2021-08-24 18:32:48 -04:00
6d5845ff8d
Merge https://github.com/KoboldAI/KoboldAI-Client/pull/45 into big-o
2021-08-24 17:27:50 -04:00
henk717
33d76a5132
Merge pull request #6 from VE-FORBRYDERNE/editable-chunks
...
More bug fixes for editable chunks
2021-08-24 19:55:56 +02:00
2a7c6244cb
Constant world info keys
2021-08-24 13:45:20 -04:00
ce59c9d399
Fix left/right arrow key bug
...
This happens when you have a chunk that has no trailing
newlines followed by a chunk with a single newline at the start.
Moving between those chunks would cause the caret to jump to the wrong
position sometimes.
2021-08-24 13:32:29 -04:00
90e558cf3f
Won't freeze anymore if you delete the prompt
2021-08-24 11:24:29 -04:00
7059c18f70
Prevent current_editing_chunk from being a non-chunk element
2021-08-24 11:14:18 -04:00
henk717
f0962155b8
Merge pull request #5 from VE-FORBRYDERNE/editable-chunks
...
Scroll down on submit
2021-08-24 01:22:57 +02:00
13ce16b859
Scroll down on submit
2021-08-23 19:19:36 -04:00
henk717
c108e080bf
Various Fixes
...
Various Fixes, mostly to make the UI play a little nicer in the new edit mode. Also reverted and optimized some of the setting stuff.
2021-08-24 01:18:09 +02:00
henk717
1c8f6cbc75
Merge pull request #4 from VE-FORBRYDERNE/editable-chunks
...
Editable chunks
2021-08-24 01:01:27 +02:00
3bf467e63c
Added dedicated inline editing commands to aiserver.py
...
It's a lot faster now.
2021-08-23 18:52:45 -04:00
a907c0a554
Prevent aiserver.py from rarely editing the wrong chunk
2021-08-23 18:26:38 -04:00
7ce5b120a0
Also allow backspacing into another chunk
...
It will still defocus the chunk almost immediately though,
this needs to be fixed later
2021-08-23 18:11:03 -04:00
3c9f6963b8
Allow using left and right arrow keys to move between chunks
2021-08-23 18:00:35 -04:00
85151cec7b
Prevent white border on chunks with Allow Edit off
2021-08-23 14:53:18 -04:00
81c83dfef7
Fix bug where chunks still editable with Allow Editing off
...
If, with Allow Editing on, you change a chunk and then click directly on
the "Allow Editing" switch again to turn it off without defocusing the
chunk in-between (by clicking outside the chunk, using enter/escape,
etc), all story chunks would still be editable.
That behaviour has now been fixed.
2021-08-23 14:25:40 -04:00
723e02d793
Improve story chunk blurring
2021-08-23 14:05:40 -04:00
2071daf335
Remove the Delete button
2021-08-23 13:22:50 -04:00
f1f50e7b80
Remove display: flex; from #gamescreen CSS
2021-08-23 13:08:13 -04:00
42b4104d4f
Use henk717's modified CSS for editable chunks
2021-08-23 13:06:27 -04:00
67521d53f9
You can now click on story chunks to edit them
2021-08-23 02:34:27 -04:00
henk717
2fd544cad7
Change max tokens to 4096
...
It works smoothly on the TPU colab, so lets allow it. People should not turn this all the way up unless they got the hardware, but we want to allow this for those that do.
2021-08-22 20:59:47 +02:00