Skip to content

Your virtual companian/waifu powered by chatgpt and other state-of-the-art AI models

License

Notifications You must be signed in to change notification settings

SynodicMonth/ChatWaifu

Repository files navigation

ChatWaifu

Your virtual companian/waifu powered by chatgpt and other state-of-the-art AI models

preview

preview

install

  1. install requirements
git clone https://github.com/SynodicMonth/ChatWaifu.git
pip install -r requirements.txt
  1. install automatic1111's stable-diffusion-webui follow the instructions in https://github.com/AUTOMATIC1111/stable-diffusion-webui launch the stable-diffusion-webui with --api flag set the url of the diffusion webui server in interface.py
  2. prepare a openai api key (starting with sk-) and put it in openai_api_key.txt
  3. run python interface.py
  4. open http://localhost:7680 in your browser and chat with your waifu

using

  • follow the install instructions above, and enjoy chatting to your waifu.
  • chatgpt pass can be disabled in the settings, if so, the prompt will be passed directy to the diffusion.
  • diffusion pass can be disabled in the settings, if so, no image will be generated.

customize your waifu

  • create a yaml file using the template miku.yaml
  • id:the name of our waifu to show in the character list
  • ai_nickname: the nickname of your waifu used in the coversation
  • system_prompt: system prompt used in the chatgpt, write your waifu's background, personality and tongue here.
  • diffusion_positive_prompt: positive prompt for stable diffusion, write your waifu's appearance and outfit here, if a lora is used, put the lora tag here like <lora:xiao:0.7>
  • diffusion_negative_prompt: negative prompt for stable diffusion, use this accompany with the positive prompt.

any issues? feel free to open an issue, any PRs are welcomed!

credits

About

Your virtual companian/waifu powered by chatgpt and other state-of-the-art AI models

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published