All Methods Static Methods Instance Methods Concrete Methods
| Modifier and Type |
Method and Description |
static ArkService.Builder |
builder() |
BotChatCompletionResult |
createBotChatCompletion(BotChatCompletionRequest request) |
BotChatCompletionResult |
createBotChatCompletion(BotChatCompletionRequest request,
Map<String,String> customHeaders) |
ChatCompletionResult |
createChatCompletion(ChatCompletionRequest request) |
ChatCompletionResult |
createChatCompletion(ChatCompletionRequest request,
Map<String,String> customHeaders) |
EmbeddingResult |
createEmbeddings(EmbeddingRequest request) |
EmbeddingResult |
createEmbeddings(EmbeddingRequest request,
Map<String,String> customHeaders) |
TokenizationResult |
createTokenization(TokenizationRequest request) |
TokenizationResult |
createTokenization(TokenizationRequest request,
Map<String,String> customHeaders) |
static okhttp3.OkHttpClient |
defaultApiKeyClient(String apiKey,
Duration timeout) |
static com.fasterxml.jackson.databind.ObjectMapper |
defaultObjectMapper() |
static okhttp3.OkHttpClient |
defaultResourceStsClient(String ak,
String sk,
Duration timeout,
String region) |
static retrofit2.Retrofit |
defaultRetrofit(okhttp3.OkHttpClient client,
com.fasterxml.jackson.databind.ObjectMapper mapper,
String baseUrl) |
static <T> T |
execute(io.reactivex.Single<T> apiCall) |
void |
shutdownExecutor() |
static io.reactivex.Flowable<SSE> |
stream(retrofit2.Call<okhttp3.ResponseBody> apiCall) |
static io.reactivex.Flowable<SSE> |
stream(retrofit2.Call<okhttp3.ResponseBody> apiCall,
boolean emitDone) |
static <T> io.reactivex.Flowable<T> |
stream(retrofit2.Call<okhttp3.ResponseBody> apiCall,
Class<T> cl) |
io.reactivex.Flowable<BotChatCompletionChunk> |
streamBotChatCompletion(BotChatCompletionRequest request) |
io.reactivex.Flowable<BotChatCompletionChunk> |
streamBotChatCompletion(BotChatCompletionRequest request,
Map<String,String> customHeaders) |
io.reactivex.Flowable<ChatCompletionChunk> |
streamChatCompletion(ChatCompletionRequest request) |
io.reactivex.Flowable<ChatCompletionChunk> |
streamChatCompletion(ChatCompletionRequest request,
Map<String,String> customHeaders) |