Commit Graph

422 Commits

Author SHA1 Message Date
Henk
b7f30a41c5 LLama tokenizer workaround 2023-03-06 19:32:28 +01:00
Henk
1c891181e9 Remove old worker API 2023-03-04 18:27:02 +01:00
Henk
cdfc7326e6 Horde API Setting Consolidation 2023-02-26 17:59:36 +01:00
Henk
526e8ab9b1 More Horde setting fixing 2023-02-25 16:20:49 +01:00
Henk
29ceac6d43 Horde parameter fixes 2023-02-25 16:01:11 +01:00
Henk
b49070e3ed Updated bridge for the new horde 2023-02-25 14:58:18 +01:00
jojorne
d3bedfcbda Include koboldai_vars.save_story(). 2023-02-22 15:42:56 -03:00
Henk
9e6a5db745 UI1 Botname 2023-02-19 16:22:26 +01:00
Henk
cd566caf20 Revision Fixes (Removes the workaround) 2023-02-19 00:51:50 +01:00
Henk
e905f2db2d More API stuff to User 2023-02-16 02:50:52 +01:00
Henk
f50f5b530a Move OAI to User Settings 2023-02-16 02:48:20 +01:00
Henk
ec3ed9b4d9 Don't save TQDM 2023-02-12 04:29:36 +01:00
ebolam
89e98191a0 Class Split Fix 2023-02-10 16:30:45 -05:00
ebolam
426041f1cf Class Fix 2023-02-10 16:22:37 -05:00
ebolam
606137f901 Class split fix for status bar 2023-02-10 16:17:03 -05:00
ebolam
0487b271b8 Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2023-02-09 10:54:48 -05:00
ebolam
b29d4cef29 Add basic authentication option for webUI image generation 2023-02-09 10:54:38 -05:00
ebolam
709bd634b3 Merge pull request #365 from ebolam/chatmodestoppertest
Fix for chat mode stopper
2023-02-09 10:52:34 -05:00
Henk
87544961cd Unblock themes 2023-02-04 18:47:57 +01:00
ebolam
ea6af45e95 Fix for chat mode stopper 2023-02-01 18:51:17 -05:00
henk717
2f09916b20 Merge pull request #272 from ebolam/UI2
Fixed for UI2
2023-02-02 00:03:09 +01:00
henk717
eeb3d6b3b3 Merge pull request #273 from pi6am/feat/kai-bridge-settings
Permit configuring KoboldAI horde bridge settings
2023-02-01 23:36:01 +01:00
Llama
e6608d97fd Permit configuring KoboldAI horde bridge settings
The KoboldAI horde bridge is typically configured by copying
KoboldAI-Horde-Bridge/clientData_template.py to clientData.py and
then editing the worker name, api key, and other settings. However
the bridge spawned by the local KoboldAI server was always using
hardcoded "anonymous" worker settings. To make it easier for people
to use their actual API key and specify a worker name, this change
modifies the bridge startup to attempt to import settings from
clientData.py. If clientData.py doesn't exist then we fall back
to using the default settings, and if the user hasn't edited the
worker name then we also generate a randomized name.

Also clear the horde bridge pid when stopping the bridge so that
it can be restarted within the same session.
2023-01-31 09:41:36 -08:00
ebolam
26aabaa6fb Merge branch 'henk717:united' into UI2 2023-01-31 07:34:08 -05:00
Henk
6def9abebc Model setting fixes 2023-01-31 03:06:07 +01:00
Henk
143d279f2a Don't save revision 2023-01-31 02:03:29 +01:00
somebody
63121b2b89 Fix calc_ai_text when no actions are present 2023-01-22 14:54:26 -06:00
ebolam
a0249d7ffa Changed image return to show last image rather than returning null if the action doesn't have an image 2023-01-19 12:35:55 -05:00
ebolam
4f17e541ee Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2023-01-13 07:46:48 -05:00
ebolam
e7effced13 Fix leaking usegpu and hascuda to the system save which can cause issues on colab. 2023-01-13 07:46:38 -05:00
ebolam
bd72b05e12 Fix for editting an action with a matched world info 2023-01-10 20:15:26 -05:00
ebolam
9b1138bafa Added in alternative rep pen calculation (log instead of linear application) as an option. 2023-01-10 08:45:55 -05:00
ebolam
33dc4aa749 Remove Debugging 2023-01-09 20:04:05 -05:00
ebolam
4668bc8ec0 Fix for bug that crashes generation when using soft prompts 2023-01-09 19:56:49 -05:00
henk717
535b9bdfdf Merge pull request #251 from one-some/bias-improvements
Bias improvements
2023-01-08 17:45:41 +01:00
somebody
76c1398917 Small cleanup with imports
and unused threading code
2023-01-07 20:19:31 -06:00
Henk
2d85046493 Typo Fix 2023-01-07 21:35:58 +01:00
ebolam
bf7fb52d46 Fix for tortoiseTTS crashing TTS if not installed (should be optional) 2023-01-07 15:22:09 -05:00
henk717
b4c2fa0dc1 Merge pull request #245 from pi6am/feat/flexible-memory-length
Change the maximum memory length to be based on the token budget
2023-01-06 16:30:58 +01:00
Llama
b28cc01dba Change the maximum memory length to be based on the token budget
The maximum memory length was hardcoded to 512 tokens independent of
the overall context token budget. This was restrictive when the token
budget was increased, and excessive when the budget was decreased.

Based on feedback, this change modifies the max memory length to be 50%
of the context length. I tested with a memory consisting of the first
five paragraphs of The Three Musketeers, and the change seemed
reasonable with context lengths of 512, 1024 and 2048.

In order to minimize changes, this commit only modifies
max_memory_length; max_prompt_length and max_authornote_length are still
hardcoded as 512 tokens. We might want to make the max prompt length
flexible in the future, but since the author's note is injected into
the story, it's probably fine to restrict its length since a long
author's note will likely derail the AI.
2023-01-06 00:36:32 -08:00
somebody
8460b0de68 Removed option to disable model attribution
Some models have robot attribution as a requirement in the usage
agreement
2023-01-04 17:22:47 -06:00
somebody
ab0277549c Merge branch 'united' of https://github.com/henk717/KoboldAI into screenshot 2023-01-02 12:14:38 -06:00
Llama
48dd451a8c Add the ability to insert the story prompt into the art guide.
The art guide now optionally supports the sequence <|>
If this exists in the art guide, <|> is replaced by the story summary.
Otherwise, the art guide is appended to the summary as before.
Update the default art guide to place the medium before the summary.
Also update the art guide tooltip to include the new default.
2023-01-01 21:12:25 -08:00
somebody
34c13ee760 Track who wrote original action 2022-12-27 21:20:07 -06:00
somebody
0a6dd8f7d8 Add prompt "support" 2022-12-27 18:52:22 -06:00
somebody
e772860d18 Add endpoint to get action composition 2022-12-27 17:33:46 -06:00
somebody
941f86145e Track original text 2022-12-27 16:36:28 -06:00
somebody
901322b66b Make settings work 2022-12-27 15:22:57 -06:00
somebody
7ff6c409f7 Fix probabilities on UI1 2022-12-21 17:23:35 -06:00
ebolam
99135acdea Don't save host flag 2022-12-21 14:09:09 -05:00