| 程序包 | 说明 |
|---|---|
| org.elsfs.openai.service |
| 限定符和类型 | 方法和说明 |
|---|---|
FineTune |
OpenAIApiService.cancelFineTune(String fineTuneId)
|
CreateAnswerResponse |
OpenAIApiService.createAnswer(CreateAnswerRequest createAnswerRequest)
openaai doc
`
POST /answers
Answers the specified question using the provided documents and examples.
|
CreateChatCompletionResponse |
OpenAIApiService.createChatCompletion(CreateChatCompletionRequest createChatCompletionRequest)
openaai doc
POST /chat/completions
Creates a completion for the chat message
为聊天消息创建一个 completions
|
CreateClassificationResponse |
OpenAIApiService.createClassification(CreateClassificationRequest createClassificationRequest)
openaai doc
POST /classifications
Classifies the specified `query` using provided examples.
|
CreateCompletionResponse |
OpenAIApiService.createCompletion(CreateCompletionRequest createCompletionRequest)
openaai doc
POST /completions
Creates a completion for the provided prompt and parameters
为提供的提示和参数创建完成
|
CreateEditResponse |
OpenAIApiService.createEdit(CreateEditRequest createEditRequest)
openaai doc
POST /edits
Creates a new edit for the provided input, instruction, and parameters.
|
CreateEmbeddingResponse |
OpenAIApiService.createEmbedding(CreateEmbeddingRequest createEmbeddingRequest)
|
OpenAIFile |
OpenAIApiService.createFile(File file,
String purpose) |
FineTune |
OpenAIApiService.createFineTune(CreateFineTuneRequest createFineTuneRequest)
openaai doc
POST /fine-tunes
Creates a job that fine-tunes a specified model from a given dataset.
|
ImagesResponse |
OpenAIApiService.createImage(CreateImageRequest createImageRequest)
openaai doc
POST /images/generations
Creates an image given a prompt.
|
default ImagesResponse |
OpenAIApiService.createImageEdit(File image,
String prompt) |
ImagesResponse |
OpenAIApiService.createImageEdit(File image,
String prompt,
File mask,
Number n,
String size,
String responseFormat,
String user) |
default ImagesResponse |
OpenAIApiService.createImageVariation(File image) |
ImagesResponse |
OpenAIApiService.createImageVariation(File image,
Number n,
String size,
String responseFormat,
String user) |
CreateModerationResponse |
OpenAIApiService.createModeration(CreateModerationRequest createModerationRequest)
openaai doc
POST /moderations
Classifies if text violates OpenAI\'s Content Policy
如果文本违反OpenAI\的内容策略,则进行分类
|
CreateSearchResponse |
OpenAIApiService.createSearch(String engineId,
CreateSearchRequest createSearchRequest)
已过时。
|
default CreateTranscriptionResponse |
OpenAIApiService.createTranscription(File file,
String model) |
CreateTranscriptionResponse |
OpenAIApiService.createTranscription(File file,
String model,
String prompt,
String responseFormat,
Number temperature,
String language) |
default CreateTranslationResponse |
OpenAIApiService.createTranslation(File file,
String model) |
CreateTranslationResponse |
OpenAIApiService.createTranslation(File file,
String model,
String prompt,
String responseFormat,
Number temperature) |
DeleteFileResponse |
OpenAIApiService.deleteFile(String fileId) |
DeleteModelResponse |
OpenAIApiService.deleteModel(String model) |
String |
OpenAIApiService.downloadFile(String fileId) |
ListEnginesResponse |
OpenAIApiService.listEngines()
已过时。
|
ListFilesResponse |
OpenAIApiService.listFiles() |
default ListFineTuneEventsResponse |
OpenAIApiService.listFineTuneEvents(String fineTuneId) |
ListFineTuneEventsResponse |
OpenAIApiService.listFineTuneEvents(String fineTuneId,
Boolean stream) |
ListFineTunesResponse |
OpenAIApiService.listFineTunes()
openaai doc
GET /fine-tunes
List your organization\'s fine-tuning jobs
|
ListModelsResponse |
OpenAIApiService.listModels()
openaai doc
GET /models
Lists the currently available models, and provides basic information about each one such as the owner and availability.
|
Engine |
OpenAIApiService.retrieveEngine(String engineId)
已过时。
|
OpenAIFile |
OpenAIApiService.retrieveFile(String fileId)
openaai doc
GET /files/{file_id}
Returns information about a specific file.
|
FineTune |
OpenAIApiService.retrieveFineTune(String fineTuneId)
openaai doc
GET /fine-tunes/{fine_tune_id}
Gets info about the fine-tune job.
|
Model |
OpenAIApiService.retrieveModel(String model)
openaai doc
GET /models/{model}
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
|
Copyright © 2023. All rights reserved.