| 限定符和类型 | 方法和说明 |
|---|---|
static String |
FastCompletion.ask(String apiKey,
Proxy proxy,
String prompt)
快速提问
|
static String |
FastCompletion.ask(String apiKey,
String prompt)
快速提问
|
static String |
FastCompletion.ask4Image(String apiKey,
Proxy proxy,
String prompt)
请求图片
|
static String |
FastCompletion.ask4Image(String apiKey,
String prompt)
请求图片
|
static String |
FastCompletion.chat(String apiKey,
Proxy proxy,
String content)
快速聊天
|
static String |
FastCompletion.chat(String apiKey,
String content)
快速聊天
|
| 限定符和类型 | 字段和说明 |
|---|---|
static ApiException |
ApiException.SYSTEM_ERROR |
| 限定符和类型 | 方法和说明 |
|---|---|
ApiException |
ApiException.format(Object... args) |
ApiException |
ApiException.formatMsg(String msg,
Object... args) |
ApiException |
ApiException.getNewInstance(String code,
String msg,
Object... args) |
| 限定符和类型 | 方法和说明 |
|---|---|
AudioRes |
PostApiService.audioTranscribes(AudioReq req)
Create transcription
Transcribes audio into the input language. |
AudioRes |
PostApiService.audioTranslates(AudioReq req)
Create translation
Translates audio into into English. |
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 |
EmbeddingsRes |
PostApiService.embeddingsCreate(EmbeddingsReq req)
Create embeddings
Creates an embedding vector representing the input text. |
EnginesListRes |
PostApiService.enginesList()
List engines
Lists the currently available (non-finetuned) models, and provides basic information about each one such as the owner and availability. |
EnginesDataRes |
PostApiService.enginesRetrieve(String engineId)
Retrieve engine
Retrieves a model instance, providing basic information about it such as the owner and availability. |
ObjDelRes |
PostApiService.fileDelete(String fileId)
Delete file
Delete a file. |
FileListRes |
PostApiService.fileList()
List files
Returns a list of files that belong to the user's organization. |
FileDetRes |
PostApiService.fileRetrieve(String fileId)
Retrieve file
Returns information about a specific file. |
String |
PostApiService.fileRetrieveContent(String fileId)
Retrieve file content
Returns the contents of the specified file. |
FileDetRes |
PostApiService.fileUpload(FileReq req)
Upload file
Upload a file that contains document(s) to be used across various endpoints/features. |
FineTunesRes |
PostApiService.fineTuneCancel(String fineTuneId)
Cancel fine-tune
Immediately cancel a fine-tune job. |
FineTunesRes |
PostApiService.fineTuneCreate(FineTunesReq req)
Create fine-tune
Creates a job that fine-tunes a specified model from a given dataset. |
ObjDelRes |
PostApiService.fineTuneDelete(String model)
Delete fine-tune model
Delete a fine-tuned model. |
EventListRes |
PostApiService.fineTuneEventList(String fineTuneId)
List fine-tune events
Get fine-grained status updates for a fine-tune job. |
FineTuneListRes |
PostApiService.fineTuneList()
List fine-tunes
List your organization's fine-tuning jobs. |
FineTunesRes |
PostApiService.fineTuneRetrieve(String fineTuneId)
Retrieve fine-tune
Gets info about the fine-tune job. |
ImageRes |
PostApiService.imageCreate(ImageReq req)
Create image
Creates an image given a prompt. |
ImageRes |
PostApiService.imageEdit(ImageReq req)
Create image edit
Creates an edited or extended image given an original image and a prompt. |
ImageRes |
PostApiService.imageVariate(ImageReq req)
Create image variation
Creates a variation of a given image. |
ModelDataRes |
PostApiService.model(String modelName)
Retrieve model
Retrieves a model instance, providing basic information about the model such as the owner and permissioning. |
ModelRes |
PostApiService.models()
List models
Lists the currently available models, and provides basic information about each one such as the owner and availability. |
ModerationsRes |
PostApiService.moderationsCreate(ModerationsReq req)
Create moderation
Classifies if text violates OpenAI's Content Policy |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
HttpAsyncClientUtil.execute(org.apache.http.impl.nio.client.CloseableHttpAsyncClient asyncClient,
org.apache.http.client.methods.HttpUriRequest request,
Callback<String> callback) |
Copyright © 2023. All rights reserved.