Commit Graph

1857 Commits

Author SHA1 Message Date
henk717
dab58d8393
Merge branch 'KoboldAI:main' into united 2021-09-29 17:05:06 +02:00
henk717
245ff6d2f3
Merge pull request #70 from VE-FORBRYDERNE/editor
More bug fixes
2021-09-29 16:37:25 +02:00
Gnome Ann
a179bb2820 Bump version number to 1.16.2 2021-09-28 21:50:33 -04:00
Gnome Ann
e6cd28243e Scroll to the bottom of the gamescreen after retrying 2021-09-28 21:34:36 -04:00
Gnome Ann
bb323152d7 Disable vars.recentedit again 2021-09-28 21:24:08 -04:00
Gnome Ann
2b89bcb16e Fix random story generator 2021-09-28 21:04:26 -04:00
Gnome Ann
af93c96c0f Submit Action mode action in Story mode if action is empty 2021-09-28 19:50:00 -04:00
Gnome Ann
9ab1d182ac Guard against empty prompts 2021-09-28 19:48:43 -04:00
Gnome Ann
4961273a26 Don't scroll to the bottom of screen when exiting world info
One of my earlier commits apparently removed the need for this.
2021-09-28 19:03:43 -04:00
Gnome Ann
8447ec44ab Fix world info screen and bump application.js version 2021-09-28 19:00:23 -04:00
henk717
da55ed3b49
Merge branch 'KoboldAI:main' into united 2021-09-28 10:41:01 +02:00
henk717
c44946f216
Merge pull request #69 from VE-FORBRYDERNE/editor
Editor enhancements part 2
2021-09-28 10:40:15 +02:00
Gnome Ann
03c1a3ebf9 Put vars.recentedit = True in deleterequest() for consistency 2021-09-28 01:10:20 -04:00
Gnome Ann
97e1760af5 Prevent retry from popping chunks after edit/delete 2021-09-28 01:07:11 -04:00
Gnome Ann
231290608d Do a better job of preventing editing of text when required 2021-09-28 00:48:37 -04:00
Gnome Ann
f632ad9880 Use a more robust scheme for restorePrompt
The original way didn't work properly in Firefox on Android when you
select all text and replace it with something else.
2021-09-27 23:38:41 -04:00
Gnome Ann
e8cefcc2c6 (Firefox) Fix certain chunks not updating when editing
I don't know why Firefox is so weird but we need to do this or else
some chunks don't update properly when you edit multiple chunks at the
same time.

One example of when this happened is when you have a story with at least
one chunk other than the prompt. Then, if you select the entire story
except for the first few characters of the prompt and then delete the
selected characters, and then defocus the story to save your changes,
the last chunk in the story will not register as having been deleted,
which you can verify if you refresh the page.

Another example. If your story has a chunk with no trailing newlines
followed by a chunk with exactly two leading newlines, if you delete
the first newline from the latter chunk and then defocus to save your
edits, the newline will be there again when you refresh the page.
2021-09-27 23:10:34 -04:00
Gnome Ann
3297c27fcd Fix using escape to save edits 2021-09-27 22:56:12 -04:00
Gnome Ann
b39f12b60b Remove unneeded console.log() 2021-09-27 22:47:27 -04:00
Gnome Ann
cc207109bc Merge branch 'main' into editor 2021-09-27 22:46:05 -04:00
henk717
431acce0bb
Remove unneeded scrollbars
There was an unneeded scrollbar growing as you were expanding towards the top of the screen, now this scrollbar is hidden until you actually need it making the UI look a bit more polished.
2021-09-28 04:44:17 +02:00
Gnome Ann
13b81c7523 Prevent the user from deleting the prompt 2021-09-27 22:21:14 -04:00
henk717
01b30b315f
Merge branch 'KoboldAI:main' into united 2021-09-28 02:31:20 +02:00
henk717
954a8a88f9
Merge pull request #68 from VE-FORBRYDERNE/editor
Editor enhancements
2021-09-28 02:30:35 +02:00
Gnome Ann
e29e7b11ec Bump version number to 1.16.1 2021-09-27 18:12:15 -04:00
Gnome Ann
fff095b496 Stop all animations before performing scroll-to-bottom
So that if the animation is triggered multiple times you don't have to
wait for all the animations to be performed one after the other before
you can finally manually scroll.
2021-09-27 18:10:33 -04:00
Gnome Ann
09d540b580 Prevent editing the "Welcome to KoboldAI!" message 2021-09-27 17:55:54 -04:00
Gnome Ann
a327eed2c3 Fix editor scrolling issues 2021-09-27 17:44:22 -04:00
Gnome Ann
47c6f48e94 Move padding and overflow-y from #gamescreen to #gametext
For stories that are long enough for the scroll bar to appear on the
screen, Firefox on desktop would originally only allow you to start
editing if you click on the actual text, i.e. you couldn't click on the
blank part of a line. This behaviour is now fixed.
2021-09-27 16:37:38 -04:00
Gnome Ann
25758dc3ab Fix event handler for clicking on story text
It wouldn't trigger any events originally when you click on parts of the
story text area that didn't contain any text, e.g. on a blank line or on
the blank part of a line to the right of the actual text.
2021-09-27 16:33:24 -04:00
Gnome Ann
5f154b8b55 Replace all references to #gametext with game_text
Come to think of it, I'm not sure where the variable "gametext" was even
defined. Is this some kind of sorcery?
2021-09-27 16:04:42 -04:00
Gnome Ann
3b19d4518a Remove "Desktop only" from application.js comments 2021-09-27 15:57:07 -04:00
Gnome Ann
c3781e0e2f Rewrite the code for the editor for better browser compat
Does not work well on mobile. That's on my to-do list, don't you worry!
2021-09-27 13:11:15 -04:00
henk717
01339f0b87
Merge branch 'KoboldAI:main' into united 2021-09-25 17:44:51 +02:00
henk717
fd8968d14f
Merge pull request #67 from VE-FORBRYDERNE/main
Change AutoModel to AutoModelForCausalLM
2021-09-25 17:44:32 +02:00
Gnome Ann
5893e495b6 Change AutoModel to AutoModelForCausalLM
This fixes breakmodel mode for the official models from the model
selection menu.
2021-09-25 11:41:15 -04:00
henk717
c9290d02dc Update aiserver.py
Better way of checking for the model type
2021-09-25 16:50:24 +02:00
henk717
7d35f825c6 Huggingface GPT-J Support
Finetune's fork has unofficial support which we supported, but this is not compatible with models designed for the official version. In this update we let models decide which transformers backend to use, and fall back to Neo if they don't choose any. We also add the 6B to the menu and for the time being switch to the github version of transformers to be ahead of the waiting time. (Hopefully we can switch back to the conda version before merging upstream).
2021-09-25 16:26:17 +02:00
henk717
f8bc7eabae
Merge pull request #66 from henk717/united
Download link update
2021-09-24 18:18:16 +02:00
Gnome Ann
4d9eab3785 K80 test 2021-09-23 20:57:18 -04:00
henk717
72669e0489
Download link update
Readme still mentioned a .tar version for horni, the 7z version saves space and ships with the defaults configured.
2021-09-23 19:12:13 +02:00
henk717
6520cac75d
Support models that are formatted with CRLF
A new model was released that uses a different formatting for its enters, this causes to many enters in the UI. In this change we fix the issue so that when this happens the UI still displays the content as you would expect. Removing the formatting burden from the Model developers.
2021-09-22 00:34:05 +02:00
henk717
b79e79905b
Portability bugfix
KoboldAI's runtime breaks if you move it because of an incorrect cd command
2021-09-21 23:57:34 +02:00
KoboldAI Dev
a454e7547f
Merge pull request #65 from henk717/united
The Big United Update! - 0.16 made by the KoboldAI community
Huge thanks to everyone who contributed to this update! =)
2021-09-21 14:09:35 -04:00
henk717
12a87a5c6c
Update readme.md 2021-09-21 20:04:36 +02:00
henk717
ad42633658
Give Ralf credit for flask-cloudflared 2021-09-21 18:55:49 +02:00
henk717
30a7e945a1
Merge pull request #18 from VE-FORBRYDERNE/doc
Correct misindicated model VRAM requirements
2021-09-21 18:54:19 +02:00
henk717
dd1c3ab67e Allow models to set formatting defaults
Originally omitted when model settings were forced. Now that models can only define the defaults for KoboldAI its a good idea to give model authors control over what formatting they think works best for their models.
2021-09-21 15:46:54 +02:00
Gnome Ann
bbf2bd4026 Correct misindicated model VRAM requirements 2021-09-20 18:49:17 -04:00
henk717
b89a988ee4
Merge pull request #17 from VE-FORBRYDERNE/failsafe
Update client-side story name when saving
2021-09-20 15:49:18 +02:00