Class OpenAI
java.lang.Object
io.github.stefanbratanov.jvm.openai.OpenAI
A class which when created using the
OpenAI.Builder
can be used to create clients based
on the endpoints defined at API
Reference - OpenAI API-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenAI.Builder
static OpenAI.Builder
newBuilder
(String apiKey)
-
Method Details
-
audioClient
- Returns:
- a client based on Audio
-
chatClient
- Returns:
- a client based on Chat
-
embeddingsClient
- Returns:
- a client based on Embeddings
-
fineTuningClient
- Returns:
- a client based on Fine-tuning
-
batchClient
- Returns:
- a client based on Batch
-
filesClient
- Returns:
- a client based on Files
-
uploadsClient
- Returns:
- a client based on Uploads
-
imagesClient
- Returns:
- a client based on Images
-
modelsClient
- Returns:
- a client based on Models
-
moderationsClient
- Returns:
- a client based on Moderations
-
assistantsClient
- Returns:
- a client based on Assistants
-
threadsClient
- Returns:
- a client based on Threads
-
messagesClient
- Returns:
- a client based on Messages
-
runsClient
- Returns:
- a client based on Runs
-
runStepsClient
- Returns:
- a client based on Run Steps
-
vectorStoresClient
- Returns:
- a client based on Vector Stores
-
vectorStoreFilesClient
- Returns:
- a client based on Vector Store Files
-
vectorStoreFileBatchesClient
- Returns:
- a client based on Vector Store File Batches
-
invitesClient
- Returns:
- a client based on Invites
-
usersClient
- Returns:
- a client based on Users
-
projectsClient
- Returns:
- a client based on Projects
-
projectUsersClient
- Returns:
- a client based on Project Users
-
projectServiceAccountsClient
- Returns:
- a client based on Project Service Accounts
-
projectApiKeysClient
- Returns:
- a client based on Project API Keys
-
auditLogsClient
- Returns:
- a client based on Audit Logs
-
newBuilder
-
newBuilder
- Parameters:
apiKey
- the API key used for authentication
-