Giter Site home page Giter Site logo

chatgptapisdk's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chatgptapisdk's Issues

图片生成问题

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

这里如何记录联系对话

@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);
System.out.println(JSONObject.toJSONString(res));
}

这里如何记录联系对话

chat api NPE

ChatGptApiPost : >>>>completionsChatStream.parseConversation.exec.exception, e:

java.lang.NullPointerException: null
at com.github.niefy.modules.care.controller.ReportController.lambda$ai$0(ReportController.java:86)
at cn.jianwoo.openai.chatgptapi.service.impl.ChatGptApiPost.lambda$completionsChatStream$2(ChatGptApiPost.java:292)

代理怎么设置账号密码

http代理不设置账号密码会有安全问题,我看他们用OkHttpClient 可以设置账号密码,不知道这个项目如何设置

自建model请求token超出

使用自己的训练库文件,片段:{"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 your prompt; 2048 for the completion). Please reduce your prompt; or completion length.",
"type": "invalid_request_error",
"param": null,
"code": null
}
加了max_token,就强行把答案补充到max_token的长度,最后一个文字一直重复,不能正常对话,不加max_token,就一直报这个错。有遇到同样问题的吗?

问题

is:issue is:open java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at io.reactivex.internal.util.ExceptionHelper.wrapOrThrow(ExceptionHelper.java:45) at io.reactivex.internal.observers.BlockingMultiObserver.blockingGet(BlockingMultiObserver.java:90) at io.reactivex.Single.blockingGet(Single.java:2002)是什么问题导致的呀

ChatGPT4.0

什么时候支持4.0啊,哔哩哔哩很多虚拟主播都支持4.0了

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.