Interface AnthropicApi
public interface AnthropicApi
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionretrofit2.Call
<AnthropicCreateMessageResponse> createMessage
(String apiKey, String version, String beta, AnthropicCreateMessageRequest request) retrofit2.Call
<okhttp3.ResponseBody> streamMessage
(String apiKey, String version, AnthropicCreateMessageRequest request)
-
Field Details
-
X_API_KEY
- See Also:
-
-
Method Details
-
createMessage
@POST("messages") @Headers("content-type: application/json") retrofit2.Call<AnthropicCreateMessageResponse> createMessage(@Header("x-api-key") String apiKey, @Header("anthropic-version") String version, @Header("anthropic-beta") String beta, @Body AnthropicCreateMessageRequest request) -
streamMessage
@Streaming @POST("messages") @Headers("content-type: application/json") retrofit2.Call<okhttp3.ResponseBody> streamMessage(@Header("x-api-key") String apiKey, @Header("anthropic-version") String version, @Body AnthropicCreateMessageRequest request)
-