Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit f8be7b0

Browse files
committed
Add chatbot model configuration #58
1 parent 0b329cc commit f8be7b0

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,18 @@ Go to `config.json` and set the key `"sync"` to `false`.
138138
It should look like this:
139139

140140
```json
141-
"sync": false
141+
"sync": false,
142+
```
143+
</details>
144+
145+
<details><summary>Change chatbot drawing model</summary>
146+
147+
Go to `config.json` and set the key `"image_model"` to a model that you find [here](https://aqualxx.github.io/stable-ui/).
148+
149+
It should look like this:
150+
151+
```json
152+
"image_model": "stable_diffusion_2.1"
142153
```
143154
</details>
144155

example_config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"chatbot": true,
33
"model": "gpt-3.5-turbo",
44
"loading_gif": "https://tenor.com/view/loading-gif-9212724",
5-
"sync": true
5+
"sync": true,
6+
"image_model": "stable_diffusion_2.1"
67
}

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ async def on_message(message):
8888
await imagine_horde(
8989
FakeCtx(message), # NOQA
9090
prompt=prompt,
91-
model=app_commands.Choice(name="Stable Diffusion", value="stable_diffusion_2.1")
91+
model=app_commands.Choice(name=config["image_model"], value=config["image_model"])
9292
)
9393

9494

run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def configure():
3939
"chatbot": True,
4040
"model": "gpt-3.5-turbo",
4141
"loading_gif": "https://tenor.com/view/loading-gif-9212724",
42-
"sync": True
42+
"sync": True,
43+
"image_model": "stable_diffusion_2.1"
4344
}
4445
# Set a variable to store new config
4546
config = default_config # add .copy() if you want it to be separate

0 commit comments

Comments
 (0)