Index

A B C D E G H I L M O R S U X 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

AuthenticationInterceptor - Class in xyz.felh.openai.interceptor
OkHttp Interceptor that adds an authorization token header
AuthenticationInterceptor(String) - Constructor for class xyz.felh.openai.interceptor.AuthenticationInterceptor
Constructor
AuthenticationInterceptor(String, String, String) - Constructor for class xyz.felh.openai.interceptor.AuthenticationInterceptor
Constructor

B

BASE_URL - Static variable in interface xyz.felh.openai.constant.OpenAiConstants
 
buildApi(String, Duration) - Static method in class xyz.felh.openai.OpenAiService
 

C

cancelBatch(String) - Method in interface xyz.felh.openai.OpenAiApi
Cancels an in-progress batch.
cancelBatch(String) - Method in class xyz.felh.openai.OpenAiService
Cancels an in-progress batch.
cancelFineTuningJob(String) - Method in interface xyz.felh.openai.OpenAiApi
Cancel fine-tuning
cancelFineTuningJob(String) - Method in class xyz.felh.openai.OpenAiService
Immediately cancel a fine-tune job.
cancelThreadRun(String, String) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}/cancel
cancelThreadRun(String, String) - Method in class xyz.felh.openai.OpenAiService
POST https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}/cancel
cancelVectorStoreFileBatch(String, String) - Method in interface xyz.felh.openai.OpenAiApi
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel <p> Cancel vector store file batch @param vectorStoreId The ID of the vector store that the file batch belongs to. @param batchId The ID of the file batch to cancel. @return The modified {@link VectorStoreFileBatch} object.'
cancelVectorStoreFileBatch(String, String) - Method in class xyz.felh.openai.OpenAiService
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel <p> Cancel vector store file batch @param vectorStoreId The ID of the vector store that the file batch belongs to. @param batchId The ID of the file batch to cancel. @return The modified {@link VectorStoreFileBatch} object.'
close() - Method in class xyz.felh.openai.StreamListener
cancel eventSource
createAssistant(CreateAssistantRequest) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/assistants
createAssistant(CreateAssistantRequest) - Method in class xyz.felh.openai.OpenAiService
POST https://api.openai.com/v1/assistants
createAudioTranscription(RequestBody) - Method in interface xyz.felh.openai.OpenAiApi
Create transcriptionBeta Transcribes audio into the input language.
createAudioTranscription(CreateAudioTranscriptionRequest) - Method in class xyz.felh.openai.OpenAiService
Transcribes audio into the input language.
createAudioTranslation(RequestBody) - Method in interface xyz.felh.openai.OpenAiApi
Create translationBeta Translates audio into English.
createAudioTranslation(CreateAudioTranslationRequest) - Method in class xyz.felh.openai.OpenAiService
whisper-1
createBatch(CreateBatchRequest) - Method in interface xyz.felh.openai.OpenAiApi
Creates and executes a batch from an uploaded file of requests
createBatch(CreateBatchRequest) - Method in class xyz.felh.openai.OpenAiService
Creates and executes a batch from an uploaded file of requests
createChatCompletion(CreateChatCompletionRequest) - Method in interface xyz.felh.openai.OpenAiApi
Create chat completionBeta Creates a completion for the chat message
createChatCompletion(CreateChatCompletionRequest) - Method in class xyz.felh.openai.OpenAiService
gpt-4, gpt-4-0314, gpt-4-32k, gpt-4-32k-0314, gpt-3.5-turbo, gpt-3.5-turbo-0301 gpt-3.5-turbo-1006, gpt-4-1106-preview
createChatCompletion(CreateChatCompletionRequest, Function<ChatCompletion, CreateChatCompletionRequest>) - Method in class xyz.felh.openai.OpenAiService
 
createEmbedding(CreateEmbeddingRequest) - Method in interface xyz.felh.openai.OpenAiApi
Create embeddings Creates an embedding vector representing the input text.
createEmbeddings(CreateEmbeddingRequest) - Method in class xyz.felh.openai.OpenAiService
text-embedding-ada-002, text-search-ada-doc-001
createFineTuningJob(CreateFineTuningJobRequest) - Method in interface xyz.felh.openai.OpenAiApi
Create fine-tuning job
createFineTuningJob(CreateFineTuningJobRequest) - Method in class xyz.felh.openai.OpenAiService
Creates a job that fine-tunes a specified model from a given dataset.
createImage(CreateImageRequest) - Method in interface xyz.felh.openai.OpenAiApi
Create image Beta Creates an image given a prompt.
createImage(CreateImageRequest) - Method in class xyz.felh.openai.OpenAiService
 
createImageEdit(RequestBody) - Method in interface xyz.felh.openai.OpenAiApi
Create image editBeta Creates an edited or extended image given an original image and a prompt.
createImageEdit(CreateEditRequest) - Method in class xyz.felh.openai.OpenAiService
 
createImageVariation(RequestBody) - Method in interface xyz.felh.openai.OpenAiApi
Create image variationBeta Creates a variation of a given image.
createImageVariation(CreateVariationRequest) - Method in class xyz.felh.openai.OpenAiService
 
createModeration(CreateModerationRequest) - Method in interface xyz.felh.openai.OpenAiApi
Create moderation Classifies if text violates OpenAI's Content Policy
createModeration(CreateModerationRequest) - Method in class xyz.felh.openai.OpenAiService
text-moderation-stable, text-moderation-latest
createSpeech(CreateSpeechRequest) - Method in interface xyz.felh.openai.OpenAiApi
Generates audio from the input text.
createSpeech(CreateSpeechRequest) - Method in class xyz.felh.openai.OpenAiService
Generates audio from the input text.
createSteamChatCompletion(String, CreateChatCompletionRequest, StreamListener<ChatCompletion>) - Method in class xyz.felh.openai.OpenAiService
create chat completion by stream, user-side handled if there is tool_calls
createSteamChatCompletion(String, CreateChatCompletionRequest, StreamListener<ChatCompletion>, BiFunction<String, ChatCompletion, StreamToolCallsRequest>) - Method in class xyz.felh.openai.OpenAiService
create chat completion by stream, sdk-side handled if there is tool_calls
createThread(CreateThreadRequest) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/threads
createThread(CreateThreadRequest) - Method in class xyz.felh.openai.OpenAiService
POST https://api.openai.com/v1/threads
createThreadAndRun(String, CreateThreadAndRunRequest, StreamListener<IOpenAiApiObject>) - Method in class xyz.felh.openai.OpenAiService
POST https://api.openai.com/v1/threads/runs
createThreadAndRun(CreateThreadAndRunRequest) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/threads/runs
createThreadAndRun(CreateThreadAndRunRequest) - Method in class xyz.felh.openai.OpenAiService
POST https://api.openai.com/v1/threads/runs
createThreadMessage(String, CreateMessageRequest) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/threads/{thread_id}/messages
createThreadMessage(String, CreateMessageRequest) - Method in class xyz.felh.openai.OpenAiService
POST https://api.openai.com/v1/threads/{thread_id}/messages
createThreadRun(String, String, CreateRunRequest, StreamListener<IOpenAiApiObject>) - Method in class xyz.felh.openai.OpenAiService
POST https://api.openai.com/v1/threads/{thread_id}/runs
createThreadRun(String, CreateRunRequest) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/threads/{thread_id}/runs
createThreadRun(String, CreateRunRequest) - Method in class xyz.felh.openai.OpenAiService
POST https://api.openai.com/v1/threads/{thread_id}/runs
createVectorStore(CreateVectorStoreRequest) - Method in interface xyz.felh.openai.OpenAiApi
invalid input: 'https://api.openai.com/v1/vector_stores <p> Create a vector store. @param request Request body @return An {@link VectorStore} object.'
createVectorStore(CreateVectorStoreRequest) - Method in class xyz.felh.openai.OpenAiService
invalid input: 'https://api.openai.com/v1/vector_stores <p> Create a vector store. @param request Request body @return An {@link VectorStore } object.'
createVectorStoreFile(String, CreateVectorStoreFileRequest) - Method in interface xyz.felh.openai.OpenAiApi
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id}/files <p> Create vector store file @param vectorStoreId The ID of the {@link VectorStore} for which to create a File. @param request Request body @return An {@link VectorStoreFile} object.'
createVectorStoreFile(String, CreateVectorStoreFileRequest) - Method in class xyz.felh.openai.OpenAiService
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id}/files <p> Create vector store file @param vectorStoreId The ID of the {@link VectorStore} for which to create a File. @param request Request body @return An {@link VectorStoreFile } object.'
createVectorStoreFileBatch(String, CreateVectorStoreFileBatchRequest) - Method in interface xyz.felh.openai.OpenAiApi
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id}/file_batches <p> Create a vector store file batch. @param vectorStoreId The ID of the vector store for which to create a File Batch. @param request Request body @return An {@link VectorStoreFileBatch} object.'
createVectorStoreFileBatch(String, CreateVectorStoreFileBatchRequest) - Method in class xyz.felh.openai.OpenAiService
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id}/file_batches <p> Create a vector store file batch. @param vectorStoreId The ID of the vector store for which to create a File Batch. @param request Request body @return An {@link VectorStoreFileBatch } object.'

D

defaultClient(String, String, String, Duration) - Static method in class xyz.felh.openai.OpenAiService
 
defaultClient(String, Duration) - Static method in class xyz.felh.openai.OpenAiService
 
defaultObjectMapper() - Static method in class xyz.felh.openai.OpenAiService
 
defaultRetrofit(OkHttpClient, ObjectMapper) - Static method in class xyz.felh.openai.OpenAiService
 
deleteAssistant(String) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/assistants/{assistant_id}
deleteAssistant(String) - Method in class xyz.felh.openai.OpenAiService
DELETE https://api.openai.com/v1/assistants/{assistant_id}
deleteFile(String) - Method in interface xyz.felh.openai.OpenAiApi
Delete file
deleteFile(String) - Method in class xyz.felh.openai.OpenAiService
 
deleteThread(String) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/threads/{thread_id}
deleteThread(String) - Method in class xyz.felh.openai.OpenAiService
DELETE https://api.openai.com/v1/threads/{thread_id}
deleteVectorStore(String) - Method in interface xyz.felh.openai.OpenAiApi
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id} <p> Delete a vector store. @param vectorStoreId The ID of the vector store to delete. @return Deletion status'
deleteVectorStore(String) - Method in class xyz.felh.openai.OpenAiService
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id} <p> Delete a vector store. @param vectorStoreId The ID of the vector store to delete. @return Deletion status'
deleteVectorStoreFile(String, String) - Method in interface xyz.felh.openai.OpenAiApi
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id}/files/{file_id} <p> Delete vector store file @param vectorStoreId The ID of the vector store that the file belongs to. @param fileId The ID of the file to delete. @return Deletion status'
deleteVectorStoreFile(String, String) - Method in class xyz.felh.openai.OpenAiService
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id}/files/{file_id} <p> Delete vector store file @param vectorStoreId The ID of the vector store that the file belongs to. @param fileId The ID of the file to delete. @return Deletion status'

E

execute(Single<T>) - Static method in class xyz.felh.openai.OpenAiService
Calls the Open AI api, returns the response, and parses error messages if the request fails
ExtractHeaderInterceptor - Class in xyz.felh.openai.interceptor
interceptor to get headers from response
ExtractHeaderInterceptor(Consumer<ResponseHeaders>) - Constructor for class xyz.felh.openai.interceptor.ExtractHeaderInterceptor
 

G

getModel(String) - Method in interface xyz.felh.openai.OpenAiApi
Retrieve model
getModel(String) - Method in class xyz.felh.openai.OpenAiService
 

H

HEADER_OPENAI_MODEL - Static variable in interface xyz.felh.openai.constant.OpenAiConstants
headers' name from response
HEADER_OPENAI_ORGANIZATION - Static variable in interface xyz.felh.openai.constant.OpenAiConstants
 
HEADER_OPENAI_PROCESSING_MS - Static variable in interface xyz.felh.openai.constant.OpenAiConstants
 
HEADER_OPENAI_VERSION - Static variable in interface xyz.felh.openai.constant.OpenAiConstants
 
HEADER_X_RATELIMIT_LIMIT_REQUESTS - Static variable in interface xyz.felh.openai.constant.OpenAiConstants
The maximum number of requests that are permitted before exhausting the rate limit.
HEADER_X_RATELIMIT_LIMIT_TOKENS - Static variable in interface xyz.felh.openai.constant.OpenAiConstants
The maximum number of tokens that are permitted before exhausting the rate limit.
HEADER_X_RATELIMIT_REMAINING_REQUESTS - Static variable in interface xyz.felh.openai.constant.OpenAiConstants
The remaining number of requests that are permitted before exhausting the rate limit.
HEADER_X_RATELIMIT_REMAINING_TOKENS - Static variable in interface xyz.felh.openai.constant.OpenAiConstants
The remaining number of tokens that are permitted before exhausting the rate limit.
HEADER_X_RATELIMIT_RESET_REQUESTS - Static variable in interface xyz.felh.openai.constant.OpenAiConstants
The time until the rate limit (based on requests) resets to its initial state.
HEADER_X_RATELIMIT_RESET_TOKENS - Static variable in interface xyz.felh.openai.constant.OpenAiConstants
The time until the rate limit (based on tokens) resets to its initial state.
HEADER_X_REQUEST_ID - Static variable in interface xyz.felh.openai.constant.OpenAiConstants
 

I

intercept(Interceptor.Chain) - Method in class xyz.felh.openai.interceptor.AuthenticationInterceptor
 
intercept(Interceptor.Chain) - Method in class xyz.felh.openai.interceptor.ExtractHeaderInterceptor
 

L

listAssistants() - Method in class xyz.felh.openai.OpenAiService
 
listAssistants(Integer, String, String, String) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/assistants
listAssistants(Integer, String, String, String) - Method in class xyz.felh.openai.OpenAiService
GET https://api.openai.com/v1/assistants
listBatches(String, Integer) - Method in interface xyz.felh.openai.OpenAiApi
List your organization's batches.
listBatches(String, Integer) - Method in class xyz.felh.openai.OpenAiService
List your organization's batches.
listFiles() - Method in interface xyz.felh.openai.OpenAiApi
List files
listFiles() - Method in class xyz.felh.openai.OpenAiService
 
listFineTuningEvents(String, String, Integer) - Method in interface xyz.felh.openai.OpenAiApi
List fine-tuning events
listFineTuningEvents(String, String, Integer) - Method in class xyz.felh.openai.OpenAiService
Get status updates for a fine-tuning job.
listModels() - Method in interface xyz.felh.openai.OpenAiApi
List models
listModels() - Method in class xyz.felh.openai.OpenAiService
 
listThreadMessages(String, Integer, String, String, String, String) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/threads/{thread_id}/messages
listThreadMessages(String, Integer, String, String, String, String) - Method in class xyz.felh.openai.OpenAiService
GET https://api.openai.com/v1/threads/{thread_id}/messages
listThreadMessages(String, String) - Method in class xyz.felh.openai.OpenAiService
 
listThreadRuns(String) - Method in class xyz.felh.openai.OpenAiService
 
listThreadRuns(String, Integer, String, String, String) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/threads/{thread_id}/runs
listThreadRuns(String, Integer, String, String, String) - Method in class xyz.felh.openai.OpenAiService
GET https://api.openai.com/v1/threads/{thread_id}/runs
listThreadRunSteps(String, String) - Method in class xyz.felh.openai.OpenAiService
 
listThreadRunSteps(String, String, Integer, String, String, String) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}/steps
listThreadRunSteps(String, String, Integer, String, String, String) - Method in class xyz.felh.openai.OpenAiService
GET https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}/steps
listVectorStoreFileBatches(String, String, Integer, String, String, String, String) - Method in interface xyz.felh.openai.OpenAiApi
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/files <p> List vector store files in a batchBeta @param vectorStoreId The ID of the vector store that the files belong to. @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. @param order Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. @param after A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. @param before A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. @param batchId The ID of the file batch that the files belong to. @param filter Filter by file status. One of in_progress, completed, failed, cancelled.{@link xyz.felh.openai.assistant.vector.store.file.batch.VectorStoreFileBatch.Status} @return A list of {@link VectorStoreFileBatch} objects.'
listVectorStoreFileBatches(String, String, Integer, String, String, String, String) - Method in class xyz.felh.openai.OpenAiService
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/files <p> List vector store files in a batchBeta @param vectorStoreId The ID of the vector store that the files belong to. @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. @param order Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. @param after A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. @param before A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. @param batchId The ID of the file batch that the files belong to. @param filter Filter by file status. One of in_progress, completed, failed, cancelled.{@link xyz.felh.openai.assistant.vector.store.file.batch.VectorStoreFileBatch.Status} @return A list of {@link VectorStoreFileBatch} objects.'
listVectorStoreFileBatches(String, String, String) - Method in class xyz.felh.openai.OpenAiService
 
listVectorStoreFiles(String, Integer, String, String, String, String) - Method in interface xyz.felh.openai.OpenAiApi
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id}/files <p> List vector store files @param vectorStoreId The ID of the vector store that the files belong to. @param filter Filter by file status. One of in_progress, completed, failed, cancelled of {@link xyz.felh.openai.assistant.vector.store.file.VectorStoreFile.Status}. @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. @param order Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. @param after A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. @param before A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. @return A list of {@link VectorStoreFile} objects.'
listVectorStoreFiles(String, Integer, String, String, String, String) - Method in class xyz.felh.openai.OpenAiService
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id}/files <p> List vector store files @param vectorStoreId The ID of the vector store that the files belong to. @param filter Filter by file status. One of in_progress, completed, failed, cancelled of {@link xyz.felh.openai.assistant.vector.store.file.VectorStoreFile.Status}. @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. @param order Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. @param after A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. @param before A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. @return A list of {@link VectorStoreFile} objects.'
listVectorStoreFiles(String, String) - Method in class xyz.felh.openai.OpenAiService
 
listVectorStores() - Method in class xyz.felh.openai.OpenAiService
 
listVectorStores(Integer, String, String, String) - Method in interface xyz.felh.openai.OpenAiApi
invalid input: 'https://api.openai.com/v1/vector_stores <p> List vector stores @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. @param order Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. @param after A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. @param before A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. @return A list of {@link VectorStore} objects.'
listVectorStores(Integer, String, String, String) - Method in class xyz.felh.openai.OpenAiService
invalid input: 'https://api.openai.com/v1/vector_stores <p> List vector stores @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. @param order Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. @param after A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. @param before A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. @return A list of {@link VectorStore} objects.'

M

modifyAssistant(String, ModifyAssistantRequest) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/assistants/{assistant_id}
modifyAssistant(String, ModifyAssistantRequest) - Method in class xyz.felh.openai.OpenAiService
POST https://api.openai.com/v1/assistants/{assistant_id}
modifyThread(String, ModifyThreadRequest) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/threads/{thread_id}
modifyThread(String, ModifyThreadRequest) - Method in class xyz.felh.openai.OpenAiService
GET https://api.openai.com/v1/threads/{thread_id}
modifyThreadMessage(String, String, ModifyMessageRequest) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/threads/{thread_id}/messages/{message_id}
modifyThreadMessage(String, String, ModifyMessageRequest) - Method in class xyz.felh.openai.OpenAiService
GET https://api.openai.com/v1/threads/{thread_id}/messages/{message_id}
modifyThreadRun(String, String, ModifyRunRequest) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}
modifyThreadRun(String, String, ModifyRunRequest) - Method in class xyz.felh.openai.OpenAiService
GET https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}
modifyVectorStore(String, ModifyVectorStoreRequest) - Method in interface xyz.felh.openai.OpenAiApi
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id} <p> Modifies a vector store. @param vectorStoreId The ID of the vector store to modify. @param request Request body @return The modified {@link VectorStore} object.'
modifyVectorStore(String, ModifyVectorStoreRequest) - Method in class xyz.felh.openai.OpenAiService
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id} <p> Modifies a vector store. @param vectorStoreId The ID of the vector store to modify. @param request Request body @return The modified {@link VectorStore} object.'

O

onClosed(String) - Method in class xyz.felh.openai.StreamListener
No further calls to this listener will be made.
onEvent(String, T) - Method in class xyz.felh.openai.StreamListener
event line
onEventDone(String) - Method in class xyz.felh.openai.StreamListener
event message finished, get payload [DONE]
onFailure(String, Throwable, Response) - Method in class xyz.felh.openai.StreamListener
Invoked when an event source has been closed due to an error reading from or writing to the network.
onOpen(String, Response) - Method in class xyz.felh.openai.StreamListener
Invoked when an event source has been accepted by the remote peer and may begin transmitting events.
OpenAiApi - Interface in xyz.felh.openai
Retrofit2 API interface
OpenAiConstants - Interface in xyz.felh.openai.constant
OpenAI constants
OpenAiService - Class in xyz.felh.openai
OpenAi Service Class
OpenAiService(String) - Constructor for class xyz.felh.openai.OpenAiService
Creates a new OpenAiService that wraps OpenAiApi
OpenAiService(String, Duration) - Constructor for class xyz.felh.openai.OpenAiService
Creates a new OpenAiService that wraps OpenAiApi
OpenAiService(OpenAiApi, OkHttpClient) - Constructor for class xyz.felh.openai.OpenAiService
Creates a new OpenAiService that wraps OpenAiApi.

R

receive(ChatCompletion) - Method in class xyz.felh.openai.StreamToolCallsReceiver
 
receiveDone(String) - Method in class xyz.felh.openai.StreamToolCallsReceiver
 
ResponseHeaders - Class in xyz.felh.openai.bean
 
ResponseHeaders() - Constructor for class xyz.felh.openai.bean.ResponseHeaders
 
retrieveAssistant(String) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/assistants/{assistant_id}
retrieveAssistant(String) - Method in class xyz.felh.openai.OpenAiService
Retrieves an assistant.
retrieveBatch(String) - Method in interface xyz.felh.openai.OpenAiApi
Retrieves a batch.
retrieveBatch(String) - Method in class xyz.felh.openai.OpenAiService
Retrieves a batch.
retrieveFile(String) - Method in interface xyz.felh.openai.OpenAiApi
Retrieve file
retrieveFile(String) - Method in class xyz.felh.openai.OpenAiService
 
retrieveFileContent(String) - Method in interface xyz.felh.openai.OpenAiApi
Retrieve file content
retrieveFileContent(String) - Method in class xyz.felh.openai.OpenAiService
 
retrieveFineTuningJob(String) - Method in interface xyz.felh.openai.OpenAiApi
Retrieve fine-tuning job
retrieveFineTuningJob(String) - Method in class xyz.felh.openai.OpenAiService
Get info about a fine-tuning job.
retrieveThread(String) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/threads/{thread_id}
retrieveThread(String) - Method in class xyz.felh.openai.OpenAiService
GET https://api.openai.com/v1/threads/{thread_id}
retrieveThreadMessage(String, String) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/threads/{thread_id}/messages/{message_id}
retrieveThreadMessage(String, String) - Method in class xyz.felh.openai.OpenAiService
GET https://api.openai.com/v1/threads/{thread_id}/messages/{message_id}
retrieveThreadRun(String, String) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}
retrieveThreadRun(String, String) - Method in class xyz.felh.openai.OpenAiService
GET https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}
retrieveThreadRunStep(String, String, String) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}/steps/{step_id}
retrieveThreadRunStep(String, String, String) - Method in class xyz.felh.openai.OpenAiService
GET https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}/steps/{step_id}
retrieveVectorStore(String) - Method in interface xyz.felh.openai.OpenAiApi
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id} <p> Retrieves a vector store. @param vectorStoreId The ID of the vector store to retrieve. @return The {@link VectorStore} object matching the specified ID.'
retrieveVectorStore(String) - Method in class xyz.felh.openai.OpenAiService
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id} <p> Retrieves a vector store. @param vectorStoreId The ID of the vector store to retrieve. @return The {@link VectorStore} object matching the specified ID.'
retrieveVectorStoreFileBatch(String, String) - Method in interface xyz.felh.openai.OpenAiApi
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id}/file_batches/{batch_id} <p> Retrieves a vector store file batch. @param vectorStoreId The ID of the vector store that the file batch belongs to. @param batchId The ID of the file batch being retrieved. @return The {@link VectorStoreFileBatch} object matching the specified ID.'
retrieveVectorStoreFileBatch(String, String) - Method in class xyz.felh.openai.OpenAiService
invalid input: 'https://api.openai.com/v1/vector_stores/{vector_store_id}/file_batches/{batch_id} <p> Retrieves a vector store file batch. @param vectorStoreId The ID of the vector store that the file batch belongs to. @param batchId The ID of the file batch being retrieved. @return The {@link VectorStoreFileBatch} object matching the specified ID.'

S

StreamListener<T> - Class in xyz.felh.openai
 
StreamListener() - Constructor for class xyz.felh.openai.StreamListener
 
StreamToolCallsReceiver - Class in xyz.felh.openai
 
StreamToolCallsReceiver(OpenAiService, String, BiFunction<String, ChatCompletion, StreamToolCallsRequest>, StreamListener<ChatCompletion>, CountDownLatch) - Constructor for class xyz.felh.openai.StreamToolCallsReceiver
 
StreamToolCallsRequest - Class in xyz.felh.openai.bean
 
StreamToolCallsRequest() - Constructor for class xyz.felh.openai.bean.StreamToolCallsRequest
 
submitToolOutputs(String, String, String, SubmitToolOutputsRequest, StreamListener<IOpenAiApiObject>) - Method in class xyz.felh.openai.OpenAiService
POST https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}/submit_tool_outputs
submitToolOutputs(String, String, SubmitToolOutputsRequest) - Method in interface xyz.felh.openai.OpenAiApi
https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}/submit_tool_outputs
submitToolOutputs(String, String, SubmitToolOutputsRequest) - Method in class xyz.felh.openai.OpenAiService
POST https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}/submit_tool_outputs

U

uploadFile(File, File.Purpose) - Method in class xyz.felh.openai.OpenAiService
 
uploadFile(String, File.Purpose) - Method in class xyz.felh.openai.OpenAiService
 
uploadFile(MultipartBody.Part, RequestBody) - Method in interface xyz.felh.openai.OpenAiApi
Upload file

X

xyz.felh.openai - package xyz.felh.openai
 
xyz.felh.openai.bean - package xyz.felh.openai.bean
 
xyz.felh.openai.constant - package xyz.felh.openai.constant
 
xyz.felh.openai.interceptor - package xyz.felh.openai.interceptor
 
A B C D E G H I L M O R S U X 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form