| 程序包 | 说明 |
|---|---|
| cn.jianwoo.openai.chatgptapi.service | |
| cn.jianwoo.openai.chatgptapi.service.impl |
| 限定符和类型 | 方法和说明 |
|---|---|
CompletionRes |
PostApiService.completions(CompletionReq req)
Create completion
Creates a completion for the provided prompt and parameters stream = false |
CompletionRes |
PostApiService.completionsChat(CompletionReq req)
Create chat completion
Creates a completion for the chat message stream = false |
void |
PostApiService.completionsChatStream(CompletionReq req,
Callback<CompletionRes> callback)
Create chat completion
Creates a completion for the chat message stream = true |
CompletionRes |
PostApiService.completionsEdit(CompletionReq req)
Create edit
Creates a new edit for the provided input, instruction, and parameters. |
void |
PostApiService.completionsStream(CompletionReq req,
Callback<CompletionRes> callback)
Create completion
Creates a completion for the provided prompt and parameters stream = true |
| 限定符和类型 | 方法和说明 |
|---|---|
CompletionRes |
ChatGptApiPost.completions(CompletionReq req) |
CompletionRes |
ChatGptApiPost.completionsChat(CompletionReq req) |
void |
ChatGptApiPost.completionsChatStream(CompletionReq req,
Callback<CompletionRes> callback) |
CompletionRes |
ChatGptApiPost.completionsEdit(CompletionReq req) |
void |
ChatGptApiPost.completionsStream(CompletionReq req,
Callback<CompletionRes> callback) |
Copyright © 2023. All rights reserved.