Closed Coolllh closed 5 months ago
我的token和在https://kimi.moonshot.cn/chat/cpask2g967u5orrdimt0上面获取到的token是一样的
at checkResult (file:///app/dist/index.js:1581:11)
at createConversation (file:///app/dist/index.js:1219:7)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///app/dist/index.js:1266:68
at async /completions (file:///app/dist/index.js:1779:16) {
errcode: -2001, errmsg: '请求失败', data: undefined, httpStatusCode: undefined } [2024-05-28 20:42:06.028][info][index<983,30>] <- POST /v1/chat/completions 15853ms日志是这样的
不过我用check查询token是否可用得到的结果都是false
可以确认是refresh_token不正确,检查下refresh_token取值,取的位置是否正确
我是在这里取的token
不是这里,查看文档,文档里有取的方法。
解决了!
Response content: {"code":-1000,"message":"Unexpected token 'm', \"[model=kimi\"... is not valid JSON","data":null} java我在使用fastjson和org.json库的时候都出现了这个问题,这应该如何解决
我使用axios报{"code":-2001,"message":"请求失败","data":null}这个错误 使用httpclient和postman报Response content: {"code":-2000,"message":"Params body.messages invalid","data":null} 很奇怪