gulihua10010 / chatgptapisdk Goto Github PK
View Code? Open in Web Editor NEWchatGpt Api SDK 封装,支持 GPT-3.5,GPT-4,账单查询,开箱即用,非常简单!
chatGpt Api SDK 封装,支持 GPT-3.5,GPT-4,账单查询,开箱即用,非常简单!
我设置生成4张图片 每次只返回两张 好像还是流式返回 不知道是BUG还是就这样
调用账单后 经常报 SocketTimeoutException: Read timed out错误 不知道是哪里原因
创建出来的微调模型如何使用??没找到dome,我在官网测试出现违禁词汇为什么?
@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));
}
这里如何记录联系对话
如题
大神 怎样在已训练的模型上重复训练?
怎么让接口调用记住上下文呀
大神 超时时间怎么设置?回复太慢 总是卡顿
service.completionsChat(req)
基本都是是在40秒左右. 尤其在记住上下文中
流式又不能给出一个总的结果
非常感谢
大神上下文只能记住一层吗,如果多层怎么记
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 可以设置账号密码,不知道这个项目如何设置
使用自己的训练库文件,片段:{"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)是什么问题导致的呀
在哪里设置回复问题数限制
看官方问题格式是 content:['内容',{image:...}] 这里怎么添加!
什么时候支持4.0啊,哔哩哔哩很多虚拟主播都支持4.0了
embeddings能否支持数组,我看官方文档是支持数组的
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.