Ulysses0817
Ulysses0817
maybe replace '\n\n\n' with '' is ok? It could be misleading if input prompt contains '\n\n\n' or the text ends with '\n\n'. reference: https://github.com/waylaidwanderer/node-chatgpt-api/blob/6aeb48d03e8c172c9ee974e814dd7e367805b92a/src/ChatGPTClient.js#L33
这个参数没用了,我设置了自己的api地址还会报错,在日志显示END POST后报错说api-key不正确,但是我自己request日志里的url地址是没问题的。。。看起来项目像是还会对个人的api-key请求openai官方的服务,然后返回了api-key错误 ``` 2023-08-29 01:02:55.349 INFO 1 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 5 ms 2023-08-29 01:02:55.729 INFO 1 --- [nio-8080-exec-1] c.u.chatgpt.interceptor.OpenAILogger : OkHttp-------->:--> POST https://my.openai.url/v1/chat/completions 2023-08-29 01:02:55.730 INFO...
可能是有的联系人wxtype字段不是3,我用http接口时就是这样,因此公众号和朋友也没法自动区分开来
我用的python http api也碰到了同样的问题,30s以下的语音才会hook到。 另外就是接收语音消息时,msg里的'file_path'字段都是''