A8DOG

A8DOG

随便写写,记录折腾过程!
telegram

Build Your Own ChatGPT Bot

After the popularity of ChatGPT, it has become difficult to access, with many errors and inability to use it. However, we can use the API to access it.
I have brought a few open-source projects and tutorials on GitHub to help you build your own AI bot!

Integrating ChatGPT with WeChat and Telegram#

YouTube: https://www.youtube.com/watch?v=EfuTvNJFZbU
Zero Degree Explanation provides a detailed tutorial, and you can build it by watching the video.

ChatGPT-WEB#

This is also done through the API, but the official API and web usage are different, so it may be a bit less intelligent!

chatgpt-html#

GitHub: https://github.com/sbaliyun/chatgpt-html
Setup tutorial: https://cloud.tencent.com/developer/article/2192663
This one is very simple, just follow the tutorial! I found the experience of setting this up to be a bit less intelligent!

chatgpt-web#

GitHub: https://github.com/869413421/chatgpt-web
The author on GitHub has written a tutorial for this, and it's also very simple! I didn't try this one.

chatgpt-web#

GitHub: https://github.com/Chanzhaoyu/chatgpt-web
Just looking at the preview image makes me want to try it out!
The setup tutorial I wrote: https://a8dog.com/post/XHRI4DUIi/

cover-2

Setting this up took me a lot of time because the documentation on GitHub required installing pnpm.
After installing it, I encountered an error when running the service:

-bash: pnpm: command not found

Finally, I found the reason:

Snipaste_2023-02-17_03-07-14

Post link: https://juejin.cn/post/7067462048656916493
I used the Baota Node Manager, and it turns out that executing npm install pnpm -g directly does not add the environment variable properly.

Solution:

wget -qO- https://get.pnpm.io/install.sh | sh -

Lastly, if you also want to use Baota for management, you can refer to my solution above to solve it perfectly. Just a reminder, make sure to set the root user to run it, otherwise it won't work!

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.