After the popularity of ChatGPT, it has become difficult to access, with many encountering errors and being unable to use it. However, we can use the API to access it.
I will share with you some open-source projects and tutorials on GitHub to help you build your own AI chatbot!
Integrating ChatGPT with WeChat and Telegram#
YouTube: https://www.youtube.com/watch?v=EfuTvNJFZbU
Zero Degree's explanation is very detailed, and you can set it up by watching the video.
ChatGPT-WEB#
This is also done through the API, but the official API and web usage are different and a bit simpler!
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 simpler.
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 myself.
chatgpt-web#
GitHub: https://github.com/Chanzhaoyu/chatgpt-web
Just looking at the preview image makes me want to try it out!
I wrote a setup tutorial: https://k7blog.com/post/XHRI4DUIi/
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:
Post link: https://juejin.cn/post/7067462048656916493
I'm using the Baota Node Manager, and it turns out that I didn't add the environment variable by directly executing npm install pnpm -g.
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, remember to set the root user to run it, otherwise it won't work!