chatgpt-java
chatgpt-java copied to clipboard
ChatGPT Java SDK。支持 GPT3.5、 GPT4 API。开箱即用。
参考资料 - https://github.com/cmdhelp/cloudflare-chatgpt
Chatbot类的getChatText方法里,返回的response.body()是{"detail":"Too many requests, please slow down"}会出现报错com.alibaba.fastjson2.JSONException: illegal input, offset 1, char a
 我不是很理解,为什么会报这个错误?
或想请您告知为何model text-davinci-003不可用,我更改参数后返回的数据显示 ```json {"detail":"Engine text-davinci-003 not recognized"} ```
2022-12-09 12:17:48.300 ERROR 7095 --- [nio-5800-exec-9] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is com.alibaba.fastjson2.JSONException: illegal input, offset 1,...
作者大大,麻烦回复一下,最好的完善wiki,谢谢!祝好!
新的报错
Cannot invoke "java.util.Map.containsKey(Object)" because "this.config" is null resources里面已经配置号config。引入maven后测试代码没改。包如上错误
session这玩意很容易掉, 为啥不用apikey来对接? 我觉得可以试试这个方向