Skip navigation links
A B C D E F G I L M O R S T U 

A

AuthenticationInterceptor - Class in com.theokanning.openai.service
OkHttp Interceptor that adds an authorization token header

B

billingUsage(LocalDate, LocalDate) - Method in class com.theokanning.openai.service.OpenAiService
Account API consumption amount information inquiry.
buildApi(String, Duration) - Static method in class com.theokanning.openai.service.OpenAiService
 

C

cancelFineTune(String) - Method in class com.theokanning.openai.service.OpenAiService
Deprecated.
cancelFineTuningJob(String) - Method in class com.theokanning.openai.service.OpenAiService
 
cancelRun(String, String) - Method in class com.theokanning.openai.service.OpenAiService
 
ChatCompletionRequestMixIn - Class in com.theokanning.openai.service
 
ChatCompletionRequestMixIn() - Constructor for class com.theokanning.openai.service.ChatCompletionRequestMixIn
 
ChatCompletionRequestSerializerAndDeserializer - Class in com.theokanning.openai.service
 
ChatCompletionRequestSerializerAndDeserializer() - Constructor for class com.theokanning.openai.service.ChatCompletionRequestSerializerAndDeserializer
 
ChatCompletionRequestSerializerAndDeserializer.Deserializer - Class in com.theokanning.openai.service
 
ChatCompletionRequestSerializerAndDeserializer.Serializer - Class in com.theokanning.openai.service
 
ChatFunctionCallArgumentsSerializerAndDeserializer - Class in com.theokanning.openai.service
 
ChatFunctionCallArgumentsSerializerAndDeserializer.Deserializer - Class in com.theokanning.openai.service
 
ChatFunctionCallArgumentsSerializerAndDeserializer.Serializer - Class in com.theokanning.openai.service
 
ChatFunctionCallMixIn - Class in com.theokanning.openai.service
 
ChatFunctionCallMixIn() - Constructor for class com.theokanning.openai.service.ChatFunctionCallMixIn
 
ChatFunctionMixIn - Class in com.theokanning.openai.service
 
ChatFunctionMixIn() - Constructor for class com.theokanning.openai.service.ChatFunctionMixIn
 
ChatFunctionParametersSerializer - Class in com.theokanning.openai.service
 
ChatFunctionParametersSerializer() - Constructor for class com.theokanning.openai.service.ChatFunctionParametersSerializer
 
ChatMessageAccumulator - Class in com.theokanning.openai.service
Class that accumulates chat messages and provides utility methods for handling message chunks and function calls within a chat stream.
ChatMessageAccumulator(ChatMessage, ChatMessage) - Constructor for class com.theokanning.openai.service.ChatMessageAccumulator
Constructor that initializes the message chunk and accumulated message.
com.theokanning.openai.service - package com.theokanning.openai.service
 
convertExceptionToMessage(Exception) - Method in class com.theokanning.openai.service.FunctionExecutor
 
createAssistant(AssistantRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
createAssistantFile(String, AssistantFileRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
createChatCompletion(ChatCompletionRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
createCompletion(CompletionRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
createEdit(EditRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
createEmbeddings(EmbeddingRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
createFineTune(FineTuneRequest) - Method in class com.theokanning.openai.service.OpenAiService
Deprecated.
createFineTuneCompletion(CompletionRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
createFineTuningJob(FineTuningJobRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
createImage(CreateImageRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
createImageEdit(CreateImageEditRequest, String, String) - Method in class com.theokanning.openai.service.OpenAiService
 
createImageEdit(CreateImageEditRequest, File, File) - Method in class com.theokanning.openai.service.OpenAiService
 
createImageVariation(CreateImageVariationRequest, String) - Method in class com.theokanning.openai.service.OpenAiService
 
createImageVariation(CreateImageVariationRequest, File) - Method in class com.theokanning.openai.service.OpenAiService
 
createMessage(String, MessageRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
createModeration(ModerationRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
createRun(String, RunCreateRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
createSpeech(CreateSpeechRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
createThread(ThreadRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
createThreadAndRun(CreateThreadAndRunRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
createTranscription(CreateTranscriptionRequest, String) - Method in class com.theokanning.openai.service.OpenAiService
 
createTranscription(CreateTranscriptionRequest, File) - Method in class com.theokanning.openai.service.OpenAiService
 
createTranslation(CreateTranslationRequest, String) - Method in class com.theokanning.openai.service.OpenAiService
 
createTranslation(CreateTranslationRequest, File) - Method in class com.theokanning.openai.service.OpenAiService
 

D

defaultClient(String, Duration) - Static method in class com.theokanning.openai.service.OpenAiService
 
defaultObjectMapper() - Static method in class com.theokanning.openai.service.OpenAiService
 
defaultRetrofit(OkHttpClient, ObjectMapper) - Static method in class com.theokanning.openai.service.OpenAiService
 
deleteAssistant(String) - Method in class com.theokanning.openai.service.OpenAiService
 
deleteAssistantFile(String, String) - Method in class com.theokanning.openai.service.OpenAiService
 
deleteFile(String) - Method in class com.theokanning.openai.service.OpenAiService
 
deleteFineTune(String) - Method in class com.theokanning.openai.service.OpenAiService
 
deleteThread(String) - Method in class com.theokanning.openai.service.OpenAiService
 
deserialize(JsonParser, DeserializationContext) - Method in class com.theokanning.openai.service.ChatCompletionRequestSerializerAndDeserializer.Deserializer
 
deserialize(JsonParser, DeserializationContext) - Method in class com.theokanning.openai.service.ChatFunctionCallArgumentsSerializerAndDeserializer.Deserializer
 
Deserializer() - Constructor for class com.theokanning.openai.service.ChatCompletionRequestSerializerAndDeserializer.Deserializer
 

E

execute(ChatFunctionCall) - Method in class com.theokanning.openai.service.FunctionExecutor
 
execute(Single<T>) - Static method in class com.theokanning.openai.service.OpenAiService
Calls the Open AI api, returns the response, and parses error messages if the request fails
executeAndConvertToJson(ChatFunctionCall) - Method in class com.theokanning.openai.service.FunctionExecutor
 
executeAndConvertToMessage(ChatFunctionCall) - Method in class com.theokanning.openai.service.FunctionExecutor
 
executeAndConvertToMessageHandlingExceptions(ChatFunctionCall) - Method in class com.theokanning.openai.service.FunctionExecutor
 
executeAndConvertToMessageSafely(ChatFunctionCall) - Method in class com.theokanning.openai.service.FunctionExecutor
 

F

FunctionExecutor - Class in com.theokanning.openai.service
 
FunctionExecutor(List<ChatFunction>) - Constructor for class com.theokanning.openai.service.FunctionExecutor
 
FunctionExecutor(List<ChatFunction>, ObjectMapper) - Constructor for class com.theokanning.openai.service.FunctionExecutor
 

G

getAccumulatedChatFunctionCall() - Method in class com.theokanning.openai.service.ChatMessageAccumulator
Retrieves the function call from the accumulated message.
getAccumulatedMessage() - Method in class com.theokanning.openai.service.ChatMessageAccumulator
Retrieves the accumulated message.
getChatFunctionCallChunk() - Method in class com.theokanning.openai.service.ChatMessageAccumulator
Retrieves the function call from the message chunk.
getData() - Method in class com.theokanning.openai.service.SSE
 
getFunctions() - Method in class com.theokanning.openai.service.FunctionExecutor
 
getMessageChunk() - Method in class com.theokanning.openai.service.ChatMessageAccumulator
Retrieves the message chunk.
getModel(String) - Method in class com.theokanning.openai.service.OpenAiService
 

I

intercept(Interceptor.Chain) - Method in class com.theokanning.openai.service.AuthenticationInterceptor
 
isChatMessage() - Method in class com.theokanning.openai.service.ChatMessageAccumulator
Checks if the accumulated message contains a chat message.
isDone() - Method in class com.theokanning.openai.service.SSE
 
isFunctionCall() - Method in class com.theokanning.openai.service.ChatMessageAccumulator
Checks if the accumulated message contains a function call.

L

listAssistantFiles(String, ListSearchParameters) - Method in class com.theokanning.openai.service.OpenAiService
 
listAssistants(ListSearchParameters) - Method in class com.theokanning.openai.service.OpenAiService
 
listFiles() - Method in class com.theokanning.openai.service.OpenAiService
 
listFineTuneEvents(String) - Method in class com.theokanning.openai.service.OpenAiService
Deprecated.
listFineTunes() - Method in class com.theokanning.openai.service.OpenAiService
Deprecated.
listFineTuningJobEvents(String) - Method in class com.theokanning.openai.service.OpenAiService
 
listFineTuningJobs() - Method in class com.theokanning.openai.service.OpenAiService
 
listMessageFiles(String, String) - Method in class com.theokanning.openai.service.OpenAiService
 
listMessageFiles(String, String, ListSearchParameters) - Method in class com.theokanning.openai.service.OpenAiService
 
listMessages(String) - Method in class com.theokanning.openai.service.OpenAiService
 
listMessages(String, ListSearchParameters) - Method in class com.theokanning.openai.service.OpenAiService
 
listModels() - Method in class com.theokanning.openai.service.OpenAiService
 
listRuns(String, ListSearchParameters) - Method in class com.theokanning.openai.service.OpenAiService
 
listRunSteps(String, String, ListSearchParameters) - Method in class com.theokanning.openai.service.OpenAiService
 

M

mapStreamToAccumulator(Flowable<ChatCompletionChunk>) - Method in class com.theokanning.openai.service.OpenAiService
 
modifyAssistant(String, ModifyAssistantRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
modifyMessage(String, String, ModifyMessageRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
modifyRun(String, String, Map<String, String>) - Method in class com.theokanning.openai.service.OpenAiService
 
modifyThread(String, ThreadRequest) - Method in class com.theokanning.openai.service.OpenAiService
 

O

onFailure(Call<ResponseBody>, Throwable) - Method in class com.theokanning.openai.service.ResponseBodyCallback
 
onResponse(Call<ResponseBody>, Response<ResponseBody>) - Method in class com.theokanning.openai.service.ResponseBodyCallback
 
OpenAiService - Class in com.theokanning.openai.service
 
OpenAiService(String) - Constructor for class com.theokanning.openai.service.OpenAiService
Creates a new OpenAiService that wraps OpenAiApi
OpenAiService(String, Duration) - Constructor for class com.theokanning.openai.service.OpenAiService
Creates a new OpenAiService that wraps OpenAiApi
OpenAiService(OpenAiApi) - Constructor for class com.theokanning.openai.service.OpenAiService
Creates a new OpenAiService that wraps OpenAiApi.
OpenAiService(OpenAiApi, ExecutorService) - Constructor for class com.theokanning.openai.service.OpenAiService
Creates a new OpenAiService that wraps OpenAiApi.

R

ResponseBodyCallback - Class in com.theokanning.openai.service
Callback to parse Server Sent Events (SSE) from raw InputStream and emit the events with io.reactivex.FlowableEmitter to allow streaming of SSE.
ResponseBodyCallback(FlowableEmitter<SSE>, boolean) - Constructor for class com.theokanning.openai.service.ResponseBodyCallback
 
retrieveAssistant(String) - Method in class com.theokanning.openai.service.OpenAiService
 
retrieveAssistantFile(String, String) - Method in class com.theokanning.openai.service.OpenAiService
 
retrieveFile(String) - Method in class com.theokanning.openai.service.OpenAiService
 
retrieveFileContent(String) - Method in class com.theokanning.openai.service.OpenAiService
 
retrieveFineTune(String) - Method in class com.theokanning.openai.service.OpenAiService
Deprecated.
retrieveFineTuningJob(String) - Method in class com.theokanning.openai.service.OpenAiService
 
retrieveMessage(String, String) - Method in class com.theokanning.openai.service.OpenAiService
 
retrieveMessageFile(String, String, String) - Method in class com.theokanning.openai.service.OpenAiService
 
retrieveRun(String, String) - Method in class com.theokanning.openai.service.OpenAiService
 
retrieveRunStep(String, String, String) - Method in class com.theokanning.openai.service.OpenAiService
 
retrieveThread(String) - Method in class com.theokanning.openai.service.OpenAiService
 

S

serialize(ChatCompletionRequest.ChatCompletionRequestFunctionCall, JsonGenerator, SerializerProvider) - Method in class com.theokanning.openai.service.ChatCompletionRequestSerializerAndDeserializer.Serializer
 
serialize(JsonNode, JsonGenerator, SerializerProvider) - Method in class com.theokanning.openai.service.ChatFunctionCallArgumentsSerializerAndDeserializer.Serializer
 
serialize(Class<?>, JsonGenerator, SerializerProvider) - Method in class com.theokanning.openai.service.ChatFunctionParametersSerializer
 
Serializer() - Constructor for class com.theokanning.openai.service.ChatCompletionRequestSerializerAndDeserializer.Serializer
 
setFunctions(List<ChatFunction>) - Method in class com.theokanning.openai.service.FunctionExecutor
 
setObjectMapper(ObjectMapper) - Method in class com.theokanning.openai.service.FunctionExecutor
 
shutdownExecutor() - Method in class com.theokanning.openai.service.OpenAiService
Shuts down the OkHttp ExecutorService.
SSE - Class in com.theokanning.openai.service
Simple Server Sent Event representation
SSE(String) - Constructor for class com.theokanning.openai.service.SSE
 
SSEFormatException - Class in com.theokanning.openai.service
Exception indicating a SSE format error
SSEFormatException(String) - Constructor for class com.theokanning.openai.service.SSEFormatException
 
stream(Call<ResponseBody>) - Static method in class com.theokanning.openai.service.OpenAiService
Calls the Open AI api and returns a Flowable of SSE for streaming omitting the last message.
stream(Call<ResponseBody>, boolean) - Static method in class com.theokanning.openai.service.OpenAiService
Calls the Open AI api and returns a Flowable of SSE for streaming.
stream(Call<ResponseBody>, Class<T>) - Static method in class com.theokanning.openai.service.OpenAiService
Calls the Open AI api and returns a Flowable of type T for streaming omitting the last message.
streamChatCompletion(ChatCompletionRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
streamCompletion(CompletionRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
submitToolOutputs(String, String, SubmitToolOutputsRequest) - Method in class com.theokanning.openai.service.OpenAiService
 
subscription() - Method in class com.theokanning.openai.service.OpenAiService
Account information inquiry: including total amount and other information.

T

toBytes() - Method in class com.theokanning.openai.service.SSE
 

U

uploadFile(String, String) - Method in class com.theokanning.openai.service.OpenAiService
 
A B C D E F G I L M O R S T U 
Skip navigation links