Commit Graph

3361 Commits

Author SHA1 Message Date
Llama
8e538ba300 Combine append and append_submit, add docstring to append.
Combine the append and append_submit methods, and add an optional
parameter to append to indicate whether it is a submission.
Add a docstring to append.
2022-11-25 21:35:01 -08:00
somebody
6d7cbed2e4 Start on imggen context menu support 2022-11-25 22:53:29 -06:00
somebody
896f197adf Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into ui2-lorecard-img 2022-11-25 22:41:45 -06:00
somebody
bc802f40aa Cleanup debug 2022-11-25 22:34:28 -06:00
somebody
b8ced4bcd4 WI Image stuff
- Rename the context menu's "visibility-condition" to "enabled-on". Old
  name didn't make a lot of sense considering it was always visible.
- Add context menu stuff to wi images
- Add big image viewer and link context menu to it
2022-11-25 22:27:08 -06:00
somebody
f6d3349b56 Add ability to remove image from wi 2022-11-25 22:26:28 -06:00
somebody
45b24dfd9b Make context menus more universal 2022-11-25 21:45:44 -06:00
ebolam
2d78d9400b Fix retry to not keep the action in the log 2022-11-25 20:14:14 -05:00
ebolam
37257ca6fd Merge pull request #308 from pi6am/fix/calc_ai_text
Several fixes to calc_ai_text and lua_compute_context
2022-11-25 18:09:52 -05:00
ebolam
df1a224039 Merge pull request #310 from one-some/ui2-automatic1111-fixes
SD WebUI API fixes + Image gen loading indicator
2022-11-25 17:21:32 -05:00
ebolam
d301b1f0d5 Merge pull request #309 from one-some/ui2-rename-wi
Disambiguize wi modes
2022-11-25 17:20:12 -05:00
somebody
8a027c08d9 Add images to lorecards 2022-11-25 12:37:04 -06:00
somebody
61b9bdcf98 Remove redundant format 2022-11-24 23:39:52 -06:00
somebody
b580e9e8f9 New tooltip for image generation 2022-11-24 23:37:19 -06:00
somebody
9ca741b09a Add loading thing for image gen 2022-11-24 23:37:19 -06:00
somebody
ec20b31931 Remove reset switch for sd web api
Automatically recover from errors
2022-11-24 23:37:19 -06:00
somebody
a48d31c746 Changes on sd webui api stuff
- Strip url of trailing slashes, this caused issues when your api url
  ended with a slash (such as the default! at least i think)
- Notify the user if they didn't call sd webui with the --api argument,
  which is required to use the api
- Don't try to write to non-existant art directory, just send b64 image
  like the diffusers function does it. In the future we probably want to
  save these, but it would be in standardized manner most likely tied to
  story files somehow
2022-11-24 23:37:14 -06:00
somebody
3f0511d7bd Don't add commas to join prompts when one is empty 2022-11-24 23:18:24 -06:00
somebody
44385730f6 Allow logging to server log from show_error_notification 2022-11-24 23:17:35 -06:00
somebody
27f89df9d9 Disambiguize wi modes 2022-11-24 21:53:16 -06:00
Llama
51f1121681 Several fixes to calc_ai_text and lua_compute_context
The method lua_compute_context no longer ignores its arguments.
  This restores support for overriding the submitted text and
  allowed WI entries and folders to lua_compute_context.
Add optional allowed_wi_entries and allowed_wi_folders parameters to
  calc_ai_text.  These allow restricting which WI is added to the
  context.  The default is no restriction.
Fix an issue in which streaming tokens were returned by calc_ai_text.
  This fixes an issue in which lua_compute_context would receive
  streamed tokens (only if token streaming was turned on).
Add docstrings to calc_ai_text and to_sentences.
Improve the regular expression used to split actions by sentence.
  The new regular expression allows quotation marks after punctuation
  to be attached to the sentence.
Improve the interaction between AN and WI depth and actions split
  by sentence.  The author's note was added after the sentence
  that pushed the action count up to or greater than the depth.
  This included "empty" actions from undoing actions, as well as
  continuation actions.  As a result, the author's note text
  was often inserted at the end of the context, which often prevented
  the model from generating coherent continuation text.
Consider sentence count in addition to action count for AN and WI depth.
Ignore completely empty actions when determining AN and WI depth.
Insert AN text before the sentence that crosses the AN depth, instead of
  after the sentence.  This means that at least one sentence from the
  action alwasy appears at the end of the context, which gives the AI
  something to continue from.
A few extremely minor optimizations from reducing redundant work.
  Pre-compile the sentence splitting regular expression.
  Don't join action sentences multiple times just to compute their
  length.
Fix a few typos and remove some commented out code.
2022-11-24 11:40:57 -08:00
ebolam
bdb540052f Fix for issue 307 2022-11-23 15:33:52 -05:00
ebolam
7ad11e8ddd Merge pull request #305 from one-some/UI2
Fix error when trying to search for something that doesnt exist in finder
2022-11-23 15:15:29 -05:00
one-some
bc44e02cb9 Merge branch 'UI2' into UI2 2022-11-23 14:13:04 -06:00
somebody
a13228e05b Logo center fix 2022-11-23 14:10:41 -06:00
ebolam
bccc473515 Fix for welcome image going under flyouts even when pinned 2022-11-23 14:24:19 -05:00
somebody
abc7624318 Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-11-23 13:03:03 -06:00
ebolam
5b4faff5df Fix for model info on ready only crashing 2022-11-23 14:02:41 -05:00
ebolam
59bdee8aa1 Settings UI Level Fix 2022-11-23 14:00:01 -05:00
somebody
a00b25eeb3 Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-11-23 12:50:35 -06:00
ebolam
08ad5dbe39 Potential chat mode stopper fix 2022-11-23 11:30:34 -05:00
ebolam
385ad49bd8 Additional Presets 2022-11-23 08:46:26 -05:00
ebolam
10efdc9a94 13B Official Presets complete 2022-11-23 07:52:42 -05:00
ebolam
e8861b517a Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-11-23 07:33:36 -05:00
ebolam
f826c39b43 Additional error message 2022-11-23 07:33:30 -05:00
ebolam
773d143c86 Preset Rework 2022-11-22 21:27:36 -05:00
ebolam
b0e845f996 Fix for presets not setting 2022-11-22 19:26:37 -05:00
somebody
1c7561295d Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-11-22 14:57:20 -06:00
ebolam
cff40ce8d1 Hide audio player when experimental is on 2022-11-22 11:52:35 -05:00
ebolam
ed38172871 First attempt at simple mode 2022-11-22 10:56:18 -05:00
ebolam
a3f4bef15b Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-11-22 09:02:01 -05:00
ebolam
61bb16f636 First framework for simplified UI/Advanced UI 2022-11-22 09:01:51 -05:00
somebody
e466f447ca Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-11-21 19:06:19 -06:00
henk717
04d9172fcd Merge pull request #180 from VE-FORBRYDERNE/patch
Only enable TPU transpose optimization if loading from HF model
2022-11-21 20:02:14 +01:00
vfbd
9a3f0eaab2 Only enable TPU transpose optimization if loading from HF model 2022-11-21 13:47:18 -05:00
henk717
f2077b8e58 Merge pull request #179 from henk717/united
1.19.2
1.19.2
2022-11-20 16:26:03 +01:00
Henk
2603f1fd5d Version bump 2022-11-20 16:22:33 +01:00
somebody
1c9b40a84c Fix error when searching for something that doesn't exist 2022-11-19 20:26:27 -06:00
ebolam
dd006c355b Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-11-19 19:04:20 -05:00
ebolam
a7747be519 More TTS stuff. Now generates OGG files (dependencies not included in requirements yet) 2022-11-19 19:04:15 -05:00