cookeem / chatgpt-service Goto Github PK
View Code? Open in Web Editor NEWReal-time ChatGPT service, support GPT3/GPT4, support conversation and generate pictures from sentences, this is backend
License: MIT License
Real-time ChatGPT service, support GPT3/GPT4, support conversation and generate pictures from sentences, this is backend
License: MIT License
回答聊天结束前(回答过程中),有概率出现服务器cpu突然100%运行,貌似进入了死循环,只能重启服务器。
以下是部分使用top命令查看的
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
858 1000 20 0 720736 13472 7680 R 99.3 2.7 7:48.41 chatgpt-service
464 root 20 0 1319484 26356 18044 S 0.3 5.3 0:15.95 x-ui
1902 root 20 0 0 0 0 I 0.3 0.0 0:00.50 kworker/0:1-events_power_efficient
1917 root 20 0 11256 3704 3156 R 0.3 0.7 0:00.31 top
1 root 20 0 21932 10068 7904 S 0.0 2.0 0:02.39 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.01 kthreadd
安装你的如下步骤执行后,不管是使用wscat链接还是外部websocket链接都是可以链接,但是无法发送数据。出现输入问题无响应的情况,而且是100%出现。(测试服务器:美国和新加坡),另外,还需要安装Nginx吗?
go mod tidy
go build
./chatgpt-service
npm install -g wscat
wscat --connect ws://localhost:9000/api/ws/chat
1,服务器部署在海外,用wscat或者chatgpt-stream出现一致的问题。
2,一般提问3-5次之后出现不响应,chatgpt-service 日志没用发现断开的情况,但是没用client发的消息日志。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.