接口 DifyCompletionApiService
public interface DifyCompletionApiService
extends DifyFeedBackApiService, DifySpeechToTextConversionApiService, DifyAnnotationApiService
文本生成
-
方法概要
修饰符和类型方法说明retrofit2.Call<ChatCompletionResponse>retrofit2.Call<okhttp3.ResponseBody>retrofit2.Call<StopCompletionMessageResponse>stopCompletionMessage(String taskId, StopCompletionMessageRequest request) 从接口继承的方法 io.github.chatpass.dify.service.DifyAnnotationApiService
annotationReply, createAnnotation, deleteAnnotation, getAnnotationList, getAnnotationReplyStatus, updateAnnotation从接口继承的方法 io.github.chatpass.dify.service.DifyFeedBackApiService
feedbackMessage, getAppfeedbacks从接口继承的方法 io.github.chatpass.dify.service.DifySpeechToTextConversionApiService
audioToText, textToAudio
-
方法详细资料
-
sendCompletionMessage
@POST("completion-messages") retrofit2.Call<ChatCompletionResponse> sendCompletionMessage(@Body CompletionMessageRequest message) -
sendCompletionMessageStream
@POST("completion-messages") @Streaming retrofit2.Call<okhttp3.ResponseBody> sendCompletionMessageStream(@Body CompletionMessageRequest message) -
stopCompletionMessage
@POST("completion-messages/{task_id}/stop") retrofit2.Call<StopCompletionMessageResponse> stopCompletionMessage(@Path("task_id") String taskId, @Body StopCompletionMessageRequest request)
-