Package io.github.sashirestela.openai
Class SimpleOpenAIAnyscale
- java.lang.Object
-
- io.github.sashirestela.openai.BaseSimpleOpenAI
-
- io.github.sashirestela.openai.SimpleOpenAIAnyscale
-
public class SimpleOpenAIAnyscale extends BaseSimpleOpenAI
The Anyscale OpenAI implementation which implements a subset of the standard services.
-
-
Field Summary
-
Fields inherited from class io.github.sashirestela.openai.BaseSimpleOpenAI
assistantService, audioService, batchService, chatCompletionService, cleverClient, completionService, embeddingService, fileService, fineTuningService, imageService, modelService, moderationService, NOT_IMPLEMENTED, threadMessageService, threadRunService, threadRunStepService, threadService, vectorStoreFileBatchService, vectorStoreFileService, vectorStoreService
-
-
Constructor Summary
Constructors Constructor Description SimpleOpenAIAnyscale(@NonNull String apiKey, String baseUrl, HttpClient httpClient)
Constructor used to generate a builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenAI.Files
files()
Throw not implementedstatic BaseSimpleOpenAIArgs
prepareBaseSimpleOpenAIArgs(String apiKey, String baseUrl, HttpClient httpClient)
-
Methods inherited from class io.github.sashirestela.openai.BaseSimpleOpenAI
assistants, audios, batches, chatCompletions, completions, embeddings, fineTunings, images, models, moderations, threadMessages, threadRuns, threadRunSteps, threads, vectorStoreFileBatches, vectorStoreFiles, vectorStores
-
-
-
-
Constructor Detail
-
SimpleOpenAIAnyscale
public SimpleOpenAIAnyscale(@NonNull @NonNull String apiKey, String baseUrl, HttpClient httpClient)
Constructor used to generate a builder.- Parameters:
apiKey
- Identifier to be used for authentication. Mandatory.baseUrl
- Host's url. Optional.httpClient
- AHttpClient
object. One is created by default if not provided. Optional.
-
-
Method Detail
-
prepareBaseSimpleOpenAIArgs
public static BaseSimpleOpenAIArgs prepareBaseSimpleOpenAIArgs(String apiKey, String baseUrl, HttpClient httpClient)
-
files
public OpenAI.Files files()
Throw not implemented- Overrides:
files
in classBaseSimpleOpenAI
- Returns:
- An instance of the interface.
-
-