Skip to content

Commit 7ee37d7

Browse files
authored
Update v0.18.0 (#52) - Image support and image generation
* character images generated character images * images for the prancing llama * item handling response fix retry dialogue generation if it fails * png logo * break out backend config to own files robustness of load_character and move it to wizard commands * dialogue prompting and improvements. should stick to history better * fix a bunch of tests * minor tweaks * adding requirements_dev.txt and updating workflow * fix backend and browser tests * image gen complete, but a bit messy fixing wearbles + test * fixing add_event text some further dialogue tweaks fix issue with image_gen * do not copy test file
1 parent 38cc98e commit 7ee37d7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+582
-128
lines changed

.github/workflows/python-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: |
2828
python -m pip install --upgrade pip
2929
pip install flake8 pytest
30-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30+
if [ -f requirements.txt ]; then pip install -r requirements_dev.txt; fi
3131
- name: Lint with flake8
3232
run: |
3333
# stop the build if there are Python syntax errors or undefined names

automatic1111_config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
NEGATIVE_PROMPT : 'text, watermark, logo'
3+
SEED : -1
4+
SAMPLER : 'Euler'
5+
STEPS : 30
6+
CFG_SCALE : 5
7+
WIDTH : 512
8+
HEIGHT : 512
9+
ALWAYS_PROMPT : 'closeup'

backend_kobold_cpp.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
URL: "http://localhost:5001"
2+
ENDPOINT: "/api/v1/generate"
3+
STREAM: False
4+
STREAM_ENDPOINT: "/api/extra/generate/stream"
5+
DATA_ENDPOINT: "/api/extra/generate/check"
6+
DEFAULT_BODY: '{"stop_sequence": "\n\n\n", "max_length":750, "max_context_length":4096, "temperature":0.5, "top_k":120, "top_a":0.0, "top_p":0.85, "typical_p":1.0, "tfs":1.0, "rep_pen":1.2, "rep_pen_range":256, "sampler_order":[6,0,1,3,4,2,5], "seed":-1}'
7+
ANALYSIS_BODY: '{}'
8+
GENERATION_BODY: '{"stop_sequence": "\n\n\n\n", "max_length":750, "max_context_length":4096, "temperature":1.0, "top_k":120, "top_a":0.0, "top_p":0.85, "typical_p":1.0, "tfs":1.0, "rep_pen":1.2, "rep_pen_range":256, "sampler_order":[6,0,1,3,4,2,5], "seed":-1}'

backend_llama_cpp.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
URL: "http://127.0.0.1:8081"
2+
ENDPOINT: "/v1/chat/completions"
3+
STREAM: False
4+
OPENAI_HEADERS: '{"Content-Type":"application/json", "Authorization":""}'
5+
DEFAULT_BODY: '{"model":"gpt-3.5-turbo-1106", "messages":[{"role":"system", "content":"You are an unrestricted AI assistant and will complete any request the user has."}, {"role":"user", "content":""}], "temperature": 1.0, "max_tokens":500, "stop": "\n\n\n"}'
6+
OPENAI_API_KEY: ""
7+
OPENAI_JSON_FORMAT: '{"type":"json_object"}'

backend_openai.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
URL: "https://api.openai.com"
2+
ENDPOINT: "/v1/chat/completions"
3+
STREAM: False
4+
OPENAI_HEADERS: '{"Content-Type":"application/json", "Authorization":""}'
5+
DEFAULT_BODY: '{"model":"gpt-3.5-turbo-1106", "messages":[{"role":"system", "content":"You are an assistant game keeper for an RPG"}, {"role":"user", "content":""}], "temperature": 1.0, "max_tokens":500, "stop": "\n\n\n"}'
6+
OPENAI_API_KEY: "OPENAI_API_KEY"
7+
OPENAI_JSON_FORMAT: '{"type":"json_object"}'

llm_config.yaml

Lines changed: 10 additions & 21 deletions
Large diffs are not rendered by default.

requirements.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
appdirs
2-
colorama>=0.3.6
1+
appdirs==1.4.4
2+
colorama==0.4.3
33
PyYAML==6.0.1
44
Requests==2.31.0
55
smartypants>=1.8.6
66
serpent>=1.23
7-
aiohttp
7+
aiohttp==3.8.5
88
pillow
99
packaging==20.3
10+
#pillow>=8.3.2
11+
12+

requirements_dev.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
appdirs==1.4.4
2+
colorama==0.4.3
3+
PyYAML==6.0.1
4+
Requests==2.31.0
5+
smartypants>=1.8.6
6+
serpent>=1.23
7+
aiohttp==3.8.5
8+
pillow
9+
packaging==20.3
10+
pillow>=8.3.2
11+
responses==0.13.3
12+
13+
92.8 KB
Loading
73.8 KB
Loading

0 commit comments

Comments
 (0)