Skip to content

Commit

Permalink
feat: add support for midjourney
Browse files Browse the repository at this point in the history
  • Loading branch information
jakowenko committed Jun 22, 2023
1 parent 8c2c57c commit 8229ad2
Show file tree
Hide file tree
Showing 6 changed files with 388 additions and 6 deletions.
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,13 @@ If you would like to make a donation to support development, please use [GitHub
## Supported AIs

- [OpenAI](https://openai.com)
- [Midjourney](https://midjourney.com)\*
- [Stability AI](https://stability.ai)
- [Dream](https://dream.ai)
- [DeepAI](https://deepai.org)

\* _Midjourney currently uses an unofficial third party [package](https://github.com/erictik/midjourney-client). Use this integration at your own risk._

## Voice Commands

Activate the microphone to interact with Phrame using the following voice commands.
Expand Down Expand Up @@ -241,6 +244,44 @@ openai:
- cinematic
```

### `midjourney`

_Midjourney currently uses an unofficial third party [package](https://github.com/erictik/midjourney-client). Use this integration at your own risk._

To configure Midjourney, you will need the following:

- [Discord Server](https://support.discord.com/hc/en-us/articles/204849977-How-do-I-create-a-server) ID and Channel ID
- Obtain by going to your Discord channel in a browser which should follow this pattern - `https://discord.com/channels/SERVER_ID/CHANNEL_ID`
- Invite [Midjourney bot](https://docs.midjourney.com/docs/invite-the-bot) to your server
- While not necessary, it is also recommended to use a [Hugging Face token](https://huggingface.co/docs/hub/security-tokens) for security prompts

All other default settings found bellow will also be applied. You can overwrite the settings by updating your `config.yml` file.

```yaml
# midjourney settings (default: shown below)
midjourney:
# discord server id
server_id:
# discord channel id
channel_id:
# discord token (https://linuxhint.com/get-discord-token)
token:
# hugging face token (https://huggingface.co/docs/hub/security-tokens)
hugging_face_token:
image:
# enable or disable image generation
enable: true
# options added to a prompt that change how an image generates (https://docs.midjourney.com/docs/parameter-list)
parameters: --chaos 80 --no text
# upscale options (false, random, 1,2,3,4)
upscale: random
# used with summary to guide the image model towards a particular style
style:
- cinematic
```

### `stabilityai`

To configure Stability AI, obtain an [API key](https://platform.stability.ai) and add it to your config like the following. All other default settings found bellow will also be applied. You can overwrite the settings by updating your `config.yml` file.
Expand Down
204 changes: 198 additions & 6 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8229ad2

Please sign in to comment.