搭建QQ小猫机器人集成GPT与Stable Diffusion Webui

QQGPTStable Diffusion Webui

1.便

 

 

go-cqhttp(CQ)MeowBot()stable diffusion webuiSD

1使pingopenai访gpt.

2访openai

2.

1CQ+MeowBot访gpt

2SDfrp穿MeowBot访

go-cqhttp

1.Releases · Mrs4s/go-cqhttp (github.com)

 

 

windowsQQ
Windowsaccesstoken

2.go-cqhttp

1使CQdata/image

 

 

 

2Shift+power shell

 

 

 

3 ./go tabWindows.\

 

 

 

402

 

 

5config

 

 

 

 

6Shift+power shell ./go tabCQ

 

 

7

 

 

8QQQQ

1.config.ymlQQ

 

 

2.device.json,protocol 62

 

 

9CQpower shell

 

 

 

CQ

西

1.CQG:\Go-Cqhttp\data\images

2.CQwebsocket: ws://localhost:8080

https://github.com/CollapseNav/MeowBot

1.

1DrawAnimeCommand使gpt使gpt

2使gpt,SDSD

  //穿ip+
 string url = "http://127.0.0.1:7860/sdapi/v1/txt2img";

 

 

2.

G:\Go-Cqhttp\data\images/\

  var filePath = $"G:/Go-Cqhttp/data/images/{guid}.png";

 

 

3.AppConfig.json

使CQ)apiKeychatgptapikey

| TerraMourskey

key (terramours.site)

 {
  "apiKey": "sk-xxx",
  "botWebSocketUri": "ws://localhost:8080",
  "chatCompletionApiUrl": null,
  "textCompletionApiUrl": null,
  "gptModel": "gpt-3.5-turbo",
  "usageLimitTime": 300,
  "usageLimitCount": 5,
  "allowList": [],
  "blockList": [],
  "adminList": [],
  "groupConfigs": []
 }

 

 

nohup & systemd

 nohup ./xxxx &

E:\go-cqhttp

-----------------------------------------------------

4.windowsDD

  var filePath = $"D:/go-cqhttp/data/images/{guid}.png";

CQDgo-cqhttp

https://file.firstsaofan.top/blogfile/MeowBot-win-x64.zip

MeowBot.exe;AppConfig.json

------------------------------------------------------

 

SD

:

1.SDGitHubhttps://github.com/AUTOMATIC1111/stable-diffusion-webui  

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

2.Baaaki

aaakibilibili

https://github.com/AUTOMATIC1111/stable-diffusion-webui#automatic-installation-on-windows

  1. Python 3.10.6 Python torch Python PATH

  2. git

  3. webui .git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

  4. Windows webui-user.bat

1.SDapi西使

2.git 访GitHubG,fast GitHub访GitHub

Releases · dotnetcore/FastGithub

访GitHubhttps://file.firstsaofan.top/blogfile/fastgithub_win-x64.zip

 https://file.firstsaofan.top/blogfile/fastgithub_win-x64.zip //mdurl线fastgithub_win-x64.zip线

3.apiwebui-user.bat--api

 set COMMANDLINE_ARGS=--api

webui-user.bat

使

1.gpt

gpt@CQQQ

@#drawanime

使

GPT

 

SD使

 

#help

 

openaiTerraMours

yarpopenai

raokun/YarpProject: Yarp.ReverseProxyChatGPT (github.com)

 

AppConfig.csDefaultChatCompletionApiUrl

https://api.openai.com

  public static string DefaultChatCompletionApiUrl { get; } = "https://api.openai.com/v1/chat/completions";

1060 6G4070TI3-5

frp穿frp,

 

https://github.com/SlimeNull/MeowBot#%E4%BB%8B%E7%BB%8D

https://github.com/CollapseNav/MeowBot

https://github.com/SlimeNull/MeowBot

SDAUTOMATIC1111/stable-diffusion-webui: Stable Diffusion web UI (github.com)

 

QQ814880639

GPThttps://ai.terramours.site/

Net7firstsaofan/TerraMours (github.com)

 

 

 
posted @ 2023-05-27 18:45  忽如一夜娇妹来  阅读(120)  评论(0编辑  收藏  举报