Interface MistralAiApi
public interface MistralAiApi
-
Method Summary
Modifier and TypeMethodDescriptionretrofit2.Call
<MistralAiChatCompletionResponse> retrofit2.Call
<MistralAiEmbeddingResponse> embedding
(MistralAiEmbeddingRequest request) retrofit2.Call
<MistralAiModelResponse> models()
retrofit2.Call
<MistralAiModerationResponse> moderations
(MistralAiModerationRequest request) retrofit2.Call
<okhttp3.ResponseBody>
-
Method Details
-
chatCompletion
@POST("chat/completions") @Headers("Content-Type: application/json") retrofit2.Call<MistralAiChatCompletionResponse> chatCompletion(@Body MistralAiChatCompletionRequest request) -
streamingChatCompletion
@POST("chat/completions") @Headers("Content-Type: application/json") @Streaming retrofit2.Call<okhttp3.ResponseBody> streamingChatCompletion(@Body MistralAiChatCompletionRequest request) -
embedding
@POST("embeddings") @Headers("Content-Type: application/json") retrofit2.Call<MistralAiEmbeddingResponse> embedding(@Body MistralAiEmbeddingRequest request) -
moderations
@POST("moderations") @Headers("Content-Type: application/json") retrofit2.Call<MistralAiModerationResponse> moderations(@Body MistralAiModerationRequest request) -
models
@GET("models") @Headers("Content-Type: application/json") retrofit2.Call<MistralAiModelResponse> models()
-