Commit Graph

422 Commits

Author SHA1 Message Date
ebolam
20851485e0 Experimental 8-bit support (option will only show on linux systems) 2022-11-29 17:06:23 -05:00
somebody
ec854a808a More save stuff 2022-11-28 20:47:34 -06:00
somebody
735c4d770c Nicer api to access save directories and files 2022-11-28 17:28:46 -06:00
somebody
4ed1955aff Work on new save 2022-11-28 16:11:09 -06: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
ebolam
38d18b526b Fix for issue 319 2022-11-27 11:40:44 -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
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
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
somebody
ec20b31931 Remove reset switch for sd web api
Automatically recover from errors
2022-11-24 23:37:19 -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
somebody
a13228e05b Logo center fix 2022-11-23 14:10:41 -06: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
ebolam
ed38172871 First attempt at simple mode 2022-11-22 10:56:18 -05: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
ebolam
308417da39 Fix for new chat mode UI 2022-11-19 18:12:57 -05:00
ebolam
25826c6169 World info Save Load Bug Fix 2022-11-19 14:22:41 -05:00
somebody
cec9d3d429 Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into ui2-chat2-again 2022-11-18 16:08:41 -06:00
ebolam
4b54b97080 Fixed double space removal to also remove double spaces that span actions 2022-11-18 09:50:14 -05:00
ebolam
8aecb5116d Fix for WI duplication when loading a save file (https://github.com/ebolam/KoboldAI/issues/295) 2022-11-18 09:36:16 -05:00
ebolam
0e1a235e3a Dynamic World Info Scanner Fix 2022-11-17 20:48:28 -05:00
Robert Vining
0eef307172 Updated text2img_api and UI_2_generate_image
- Refactored new configuration vars to be used directly instead of making copies in the function.
- Rewrote post assembly for text2img_api so that it passes values correctly.

Signed-off-by: viningr
2022-11-15 18:47:19 +10:00
Robert Vining
edf04bfb06 Updated image generation functions with extra configurable settings for:
koboldai_vars.img_gen_art_guide
koboldai_vars.img_gen_negative_prompt (local SD API only until Horde supports passing negative prompts.)
koboldai_vars.img_gen_steps
koboldai_vars.img_gen_cfg_scale
Added toggle for the image_generating flag to allow resetting it in the case of interruption without needing to restart KoboldAI.
- Found error in payload format for SD api post request and resolved by consolidating prompt and settings values into single object.
- Refactored new variables to be accessed directly in functions instead of copying to local vars.
- New variables are now working correctly with SD api requests. Need testing with horde and local.

Signed-off-by: viningr
2022-11-15 18:37:04 +10:00
ebolam
7ab86a80ff Remove penalty alpha from default preset settings 2022-11-14 19:37:51 -05:00
somebody
36cee7768c Revert "Basic Contrastive Search support"
This reverts commit 0f52281af5.
2022-11-14 18:01:16 -06:00
ebolam
a523aa93e2 Added default settings for presets so when we add new features we can turn them off without having to redo presets 2022-11-14 17:33:42 -05:00
somebody
bcecac1a42 Start on action timestamp 2022-11-13 16:44:16 -06:00
somebody
5f6a80a349 Add newline to last thing if it didnt exist on chatv2 2022-11-13 14:44:04 -06:00
somebody
61fd06d0c7 Fix loading for type 2022-11-12 21:33:31 -06:00
somebody
ad7fa36c2f Combine constant with types in wi 2022-11-12 16:47:23 -06:00
somebody
2acdbfb2e7 Remove debug for images 2022-11-12 13:43:21 -06:00
somebody
4a27ad20e4 WI Images 2022-11-12 13:37:21 -06:00
ebolam
d70ed69dae Fixed new sampler showing in Original UI
Initial skeleton for tts (experimental feature)
2022-11-11 18:36:48 -05:00
ebolam
125064feca Merge pull request #293 from one-some/ui2-contrastive-search
Basic Contrastive Search support for GPUs
2022-11-11 09:24:04 -05:00
somebody
0f52281af5 Basic Contrastive Search support 2022-11-10 18:10:29 -06:00
ebolam
7c7b68e4dd Working on Deterministic AI UI changes and dynamic world info bug 2022-11-10 13:38:29 -05:00
somebody
6ffedf00ae Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into ui2-chat2-again 2022-11-09 19:08:39 -06:00
ebolam
875c56c5e7 Added URL for local stable web api 2022-11-09 19:46:57 -05:00
ebolam
5ea921d17e Potential fix for issue 285 2022-11-09 18:37:30 -05:00
somebody
3c9bd3784d Chat2 werk 2022-11-09 16:56:09 -06:00
ebolam
ffbce750f5 Fix for undo bug. 2022-11-03 19:56:25 -04:00
ebolam
87f7d20d4a Added privacy mode (ctrl+L). Will blur the screen until a password is entered (configured in the interface tab under the UI section). 2022-11-01 14:54:38 -04:00
ebolam
9aaec13e1f Fix for Model Welcome Text 2022-10-30 12:50:23 -04:00
ebolam
e3aeedfe16 Minor fix 2022-10-28 21:34:05 -04:00
ebolam
8476083490 Missing Quote Fixed (wasn't needed anymore 2022-10-28 20:59:54 -04:00