public class DIfyCompletionApi extends Object
| 构造器和说明 |
|---|
DIfyCompletionApi(String baseUrl,
String apiKey) |
| 限定符和类型 | 方法和说明 |
|---|---|
AnnotationReplyResponse |
annotationReply(AnnotationReplyAction action,
AnnotationReplyRequest request) |
Annotation |
createAnnotation(AnnotationRequest request) |
void |
deleteAnnotation(String id) |
LittleResponse |
feedbackMessage(String messageId,
FeedBackRequest request) |
AnnotationListResponse |
getAnnotationList(Integer page,
Integer limit) |
AnnotationReplyResponse |
getAnnotationReplyStatus(AnnotationReplyAction action,
String jobId) |
FeedBackListResponse |
getFeedBackList(Integer page,
Integer limit) |
ChatCompletionResponse |
sendCompletionMessage(CompletionMessageRequest message) |
void |
sendCompletionMessageStream(CompletionMessageRequest message,
CompletionStreamCallback callback) |
StopCompletionMessageResponse |
stopCompletionMessage(String taskId,
StopCompletionMessageRequest request) |
byte[] |
textToAudio(TextToAudioRequest request) |
Annotation |
updateAnnotation(String id,
AnnotationRequest request) |
public ChatCompletionResponse sendCompletionMessage(CompletionMessageRequest message)
public void sendCompletionMessageStream(CompletionMessageRequest message, CompletionStreamCallback callback)
public StopCompletionMessageResponse stopCompletionMessage(String taskId, StopCompletionMessageRequest request)
public LittleResponse feedbackMessage(String messageId, FeedBackRequest request)
public FeedBackListResponse getFeedBackList(Integer page, Integer limit)
public byte[] textToAudio(TextToAudioRequest request) throws IOException
IOExceptionpublic Annotation createAnnotation(AnnotationRequest request)
public AnnotationListResponse getAnnotationList(Integer page, Integer limit)
public void deleteAnnotation(String id)
public Annotation updateAnnotation(String id, AnnotationRequest request)
public AnnotationReplyResponse annotationReply(AnnotationReplyAction action, AnnotationReplyRequest request)
public AnnotationReplyResponse getAnnotationReplyStatus(AnnotationReplyAction action, String jobId)
Copyright © 2025. All rights reserved.