Comments (7)
没测出来,发下提的问题看看?
或者拉下新镜像,这个是旧的
from go-chatgpt-api.
你好
这样的就不行,我手动把消息里面的回车\n去掉就可以了
from go-chatgpt-api.
还是没测出来,前端项目用的哪一个?
我这样测试会 200,可以看到请求数据吗?
from go-chatgpt-api.
服务器上不知道咋打开google-chrome的窗口,go客户端,日志里面打印出来是这样
{
"action": "next",
"messages": [{
"id": "02cb22ae-4839-455a-9a39-f239682195ef",
"author": {
"role": "user"
},
"role": "user",
"content": {
"content_type": "text",
"parts": ["你好
"]
}
}],
"parent_message_id": "9c51464a-b8e4-43dd-a8da-9bf70153bcc0",
"model": "text-davinci-002-render-sha",
"conversation_id": "3f8ebcb1-8785-4cfd-b768-cb253d5cebc6"
},
from go-chatgpt-api.
用的是哪一款客户端?看起来是传的 JSON 数据本身不合法
api 加判断的话,也只能返回多一个错误信息数据不合法之类的,应该还是要改客户端修改传值处理
from go-chatgpt-api.
因为 api 反序列化 json 已经失败了,所以不能后续去掉回车,要客户端改完再提交合法 json
from go-chatgpt-api.
嗯,我在客户端加了strings.ReplaceAll(conversation.Content, "\n", "\\n")
后再请求是没有问题的
from go-chatgpt-api.
Related Issues (20)
- docker部署报错:ERRO[0000] Health check failed: HOT 30
- go-chatgpt-api 不向 ARKOSE_TOKEN_URL 发送请求就返回 Failed to get arkose token. HOT 1
- 可以在docker-compose里使用账号密码组来让他自动获取token吗? HOT 2
- chatgpt-proxy-server-warp 这个源代码为啥隐藏? HOT 6
- 和潘多拉联动的话,key还需要吗? HOT 2
- failed to start HOT 10
- refreshPuidErrorMessage HOT 2
- Post "https://chat.openai.com/backend-api/conversation": unexpected EOF HOT 1
- platform/login err HOT 7
- 更新了最新的镜像版本,还是报错nil和403 HOT 6
- 登录获取access token似乎还是有问题 HOT 2
- Latest Image does not locate .har file HOT 1
- 不支持vercel吗 HOT 1
- 大神回复真快 HOT 10
- 这个怎么使用,我点了render按钮。部署成功后返回service go-chatgpt-api is ready信息。 HOT 1
- 最新版镜像报错422,"none is not an allowed value" HOT 1
- 提问后拿不到结果 HOT 4
- chatgpt login err HOT 10
- tcr9i.chat.openai.com connect: connection timed out HOT 8
- 如何模拟 https://api.openai.com/v1/models接口呢 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-chatgpt-api.