chatGptApiSdk icon indicating copy to clipboard operation
chatGptApiSdk copied to clipboard

chatGpt Api SDK 封装,支持 GPT-3.5,GPT-4,账单查询,开箱即用,非常简单!

Results 7 chatGptApiSdk issues
Sort by recently updated
recently updated
newest added

调用账单后 经常报 SocketTimeoutException: Read timed out错误 不知道是哪里原因

@Test public void completionsContext() throws ApiException { CompletionReq req = CompletionReq.builder().model(Model.TEXT_DAVINCI_003.getName()) .stop("[\" Human:\", \" Bot:\"]").prompt("Human: 你好").build(); CompletionRes res = service.completions(req); System.out.println(JSONObject.toJSONString(res)); req.setPrompt(res.getAnswer() + "\n" + "Human: 你叫什么"); res = service.completions(req);...

大神 怎样在已训练的模型上重复训练?

我设置生成4张图片 每次只返回两张 好像还是流式返回 不知道是BUG还是就这样

大神上下文只能记住一层吗,如果多层怎么记

使用自己的训练库文件,片段:{"prompt":"什么汤最鲜->","completion":" 鱼羊汤,因为鱼羊一鲜\nENDEND"},创建一个model。 调用的时候: CompletionReq req = CompletionReq.builder().model("curie:ft-personal-2023-04-06-09-02-34").prompt("什么汤最鲜").stop("\\nENDEND").build(); CompletionRes res = service.completions(req); 返回: "error": { "message": "This model's maximum context length is 2049 tokens, however you requested 2060 tokens (12 in...