Commit Graph

3216 Commits

Author SHA1 Message Date
somebody
d4bd3bf96f Fix story sort 2022-11-27 18:15:34 -06:00
somebody
efb1995b9a Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-11-27 18:10:15 -06:00
ebolam
fa3c7ca52e Default Preset Fix 2022-11-27 19:08:35 -05:00
somebody
34d0cfc989 Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-11-27 18:07:10 -06:00
ebolam
fa12b2e95e Fix missing UI level on a few elements 2022-11-27 18:58:30 -05:00
ebolam
bcff1e6de7 Default Preset Fix 2022-11-27 18:18:45 -05:00
ebolam
3f8b6f3a37 Added back in default preset
Fix for unicorn theme for the progress bar
2022-11-27 15:59:37 -05:00
somebody
38cbc357b2 Improve SD error handling 2022-11-27 12:57:21 -06:00
ebolam
074ec612eb "Fix" for issue 318. We simply remove the selection as the selection event is giving us the parent of the action so we don't know which action is selected 2022-11-27 11:56:47 -05:00
ebolam
0371fa1782 Fix for issue 318 2022-11-27 11:51:13 -05:00
ebolam
38d18b526b Fix for issue 319 2022-11-27 11:40:44 -05:00
ebolam
2988bd91b4 Merge pull request #316 from one-some/ui2-lorecard-img
Imggen context menu and WI Image
2022-11-27 11:37:36 -05:00
ebolam
ba685e3aa5 Option Pin Visual Cleanup 2022-11-27 11:33:54 -05:00
ebolam
a3103f14ba Fix for back showing the options area even when there is no data. 2022-11-27 11:06:51 -05:00
somebody
471b652bbe Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into ui2-lorecard-img 2022-11-26 22:19:20 -06:00
somebody
01e3ba05cf WI and Generated Image link up 2022-11-26 22:17:24 -06:00
ebolam
7141888163 Fix for pin/delete/redo icons on options in light colored themes 2022-11-26 17:46:39 -05:00
ebolam
d3abf17618 Fix for missing text size 2022-11-26 17:26:34 -05:00
ebolam
57ea5cb5f8 Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-11-26 17:24:16 -05:00
ebolam
498d999a06 Added fix for UI2 to now show the back value when there is only one option (use redo to go restore it) 2022-11-26 17:24:04 -05:00
ebolam
5bf7c500ee Merge pull request #314 from pi6am/fix/simplify_append
Combine append and append_submit, add docstring to append.
2022-11-26 11:12:02 -05:00
ebolam
ab718f72ec Merge pull request #313 from one-some/ui2-lorecard-img
Flesh out WI images a bit
2022-11-26 11:11:35 -05:00
ebolam
39a040437b Fix for missing rep pen in UI1 2022-11-26 11:09:29 -05:00
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