chatgpt-java
chatgpt-java copied to clipboard
ChatGPT Java SDK。支持 GPT3.5、 GPT4 API。开箱即用。
I'm using the following code to access ChatGPT: ``` String sessionToken = "xxxxxxx"; String cfClearance = "xxxxxx"; String userAgent = "xxxxxxxx"; Config config = new Config(); config.setSession_token(sessionToken); config.setCfClearance(cfClearance); config.setUserAgent(userAgent); Chatbot...
本来是403的,我按#26的方法多试了几次。不报403了。但是没有访问权限 `getChatStream Exception: TYPE html> getChatStream Exception: lang="en-US"> getChatStream Exception: ead> getChatStream Exception: Access denied getChatStream Exception: getChatStream Exception: getChatStream Exception: getChatStream Exception: getChatStream Exception: getChatStream Exception: tion(){if(document.addEventListener&&window.XMLHttpRequest&&JSON&&JSON.stringify){var e=function(a){var c=document.getElementById("error-feedback-survey"),d=document.getElementById("error-feedback-success"),b=new...
ChatGTP -> ChatGPT
Exception in thread "main" cn.hutool.core.io.IORuntimeException: SSLHandshakeException: Received fatal alert: handshake_failure at cn.hutool.http.HttpRequest.send(HttpRequest.java:1304) at cn.hutool.http.HttpRequest.doExecute(HttpRequest.java:1156) at cn.hutool.http.HttpRequest.execute(HttpRequest.java:1030) at cn.hutool.http.HttpRequest.execute(HttpRequest.java:1006) at com.github.plexpt.chatgpt.Session.get2(Session.java:77) at com.github.plexpt.chatgpt.Chatbot.refreshSession(Chatbot.java:270) at com.github.plexpt.chatgpt.Chatbot.(Chatbot.java:62) at TestApi.main(TestApi.java:115) Caused by: javax.net.ssl.SSLHandshakeException: Received...
报错403
    配置了不行
比如自动获取这种
一个成功的案例
首先我当前使用的版本是**1.1.2** 先使用代理登录上去,这个时候,**去复制cookie中的值一定要断开vpn然后刷新一下页面(这个很重要,不然就会提示403)**,再去复制值 ``` private static final String sessionToken = "你复制出来的__Secure-next-auth.session-token"; private static final String cf_clearance = "你复制出来的cf_clearance"; private static final String user_agent = "客户端代理"; Chatbot chatbot = new Chatbot(sessionToken,cf_clearance,user_agent); Map...
Bumps [fastjson2](https://github.com/alibaba/fastjson2) from 2.0.23 to 2.0.24. Release notes Sourced from fastjson2's releases. fastjson 2.0.24发布 这又是一个例行的Bug修复功能功能增强的版本,大家按需升级。 Issues 修复ContextFilter在getter序列化时获取不到Field的问题 #1090 修复配置JSONReader.Feature.DuplicateKeyValueAsArray多于两个值时不起作用的问题 #1100 修复反序列化BigDecimal类型输入科学计数法时某些场景会报错的问题 #1120 JSONType支持配置seeAlsoDefault,对应Jackson JsonTypeInfo#defaultImpl,方便Jackson用户迁移到迁移 修复两个成员的Enum在toJavaObject场景报错的问题 #1106 修复JSONArray.parseArray方法 non-public的问题 #1107 修复兼容包中JSONArray实现的是List而非List导致类型推断出错的问题...
优化com.github.plexpt.chatgpt.Chatbot中getChatText和getChatStream中对于响应结果字符串的处理