Index
All Classes and Interfaces|All Packages|Serialized Form
A
- AuthenticationInterceptor - Class in bg.codexio.ai.openai.api.http
-
OkHttpinterceptor type for OpenAI authentication - AuthenticationInterceptor(HttpExecutorContext) - Constructor for class bg.codexio.ai.openai.api.http.AuthenticationInterceptor
B
- baseUrl - Variable in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
- bg.codexio.ai.openai.api.http - package bg.codexio.ai.openai.api.http
- bg.codexio.ai.openai.api.http.chat - package bg.codexio.ai.openai.api.http.chat
- bg.codexio.ai.openai.api.http.exception - package bg.codexio.ai.openai.api.http.exception
- bg.codexio.ai.openai.api.http.images - package bg.codexio.ai.openai.api.http.images
- bg.codexio.ai.openai.api.http.vision - package bg.codexio.ai.openai.api.http.vision
- bg.codexio.ai.openai.api.http.voice - package bg.codexio.ai.openai.api.http.voice
C
- call() - Method in record class bg.codexio.ai.openai.api.http.HttpTimeouts
-
Returns the value of the
callrecord component. - canStream(I) - Method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
-
Denotes whether the response can be streamed, mostly taking into account the value of
Streamable.stream()which usually is implemented like inputModel -> inputModel.stream() invalid input: '&'invalid input: '&' specificApiLogic. - canStream(I) - Method in interface bg.codexio.ai.openai.api.http.OpenAIHttpExecutor
-
Denotes whether the response can be streamed, mostly taking into account the value of
Streamable.stream()which usually is implemented like inputModel -> inputModel.stream() invalid input: '&'invalid input: '&' specificApiLogic. - ChatHttpExecutor - Class in bg.codexio.ai.openai.api.http.chat
-
Implementation for Completions API
- ChatHttpExecutor(HttpExecutorContext, ObjectMapper) - Constructor for class bg.codexio.ai.openai.api.http.chat.ChatHttpExecutor
- ChatHttpExecutor(OkHttpClient, String, ObjectMapper) - Constructor for class bg.codexio.ai.openai.api.http.chat.ChatHttpExecutor
- client - Variable in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
- configureObjectMapper() - Method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
- connect() - Method in record class bg.codexio.ai.openai.api.http.HttpTimeouts
-
Returns the value of the
connectrecord component. - convertFormDataFieldName(String) - Method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
- CreateImageHttpExecutor - Class in bg.codexio.ai.openai.api.http.images
-
Implementation for Create Image API
- CreateImageHttpExecutor(HttpExecutorContext, ObjectMapper) - Constructor for class bg.codexio.ai.openai.api.http.images.CreateImageHttpExecutor
- CreateImageHttpExecutor(OkHttpClient, String, ObjectMapper) - Constructor for class bg.codexio.ai.openai.api.http.images.CreateImageHttpExecutor
- credentials() - Method in record class bg.codexio.ai.openai.api.http.HttpExecutorContext
-
Returns the value of the
credentialsrecord component.
D
- DefaultOpenAIHttpExecutor<I,
O> - Class in bg.codexio.ai.openai.api.http -
Common implementation that should work out of the box when inherited with the correct input and output models.
- DefaultOpenAIHttpExecutor(HttpExecutorContext, ObjectMapper, Class<O>, String, boolean, Class<? extends DefaultOpenAIHttpExecutor<I, O>>) - Constructor for class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
- DefaultOpenAIHttpExecutor(OkHttpClient, String, ObjectMapper, Class<O>, String, boolean, Class<? extends DefaultOpenAIHttpExecutor<I, O>>) - Constructor for class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
- DefaultOpenAIHttpExecutor(OkHttpClient, String, ObjectMapper, Class<O>, String, boolean, Logger) - Constructor for class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
E
- EditImageHttpExecutor - Class in bg.codexio.ai.openai.api.http.images
-
Implementation for Create Image Edit API
- EditImageHttpExecutor(HttpExecutorContext, ObjectMapper) - Constructor for class bg.codexio.ai.openai.api.http.images.EditImageHttpExecutor
- EditImageHttpExecutor(OkHttpClient, String, ObjectMapper) - Constructor for class bg.codexio.ai.openai.api.http.images.EditImageHttpExecutor
- equals(Object) - Method in record class bg.codexio.ai.openai.api.http.HttpExecutorContext
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class bg.codexio.ai.openai.api.http.HttpTimeout
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class bg.codexio.ai.openai.api.http.HttpTimeouts
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class bg.codexio.ai.openai.api.http.OpenAIHttpExecutor.ReactiveExecution
-
Indicates whether some other object is "equal to" this one.
- execute(I) - Method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
-
Executes HTTP request synchronously
- execute(I) - Method in interface bg.codexio.ai.openai.api.http.OpenAIHttpExecutor
-
Executes HTTP request synchronously
- executeAsync(I, Consumer<String>, Consumer<O>) - Method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
-
Executes HTTP request asynchronously.
- executeAsync(I, Consumer<String>, Consumer<O>) - Method in interface bg.codexio.ai.openai.api.http.OpenAIHttpExecutor
-
Executes HTTP request asynchronously.
- executeReactive(I) - Method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
-
Executes HTTP request in reactive fashion.
- executeReactive(I) - Method in interface bg.codexio.ai.openai.api.http.OpenAIHttpExecutor
-
Executes HTTP request in reactive fashion.
G
- getEnv(String) - Method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
- getErrorHolder() - Method in exception class bg.codexio.ai.openai.api.http.exception.OpenAIRespondedNot2xxException
- getField(Field, Object, Class<T>) - Static method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
- getFormDataMimeType() - Method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
- getHttpStatusCode() - Method in exception class bg.codexio.ai.openai.api.http.exception.OpenAIRespondedNot2xxException
H
- hashCode() - Method in record class bg.codexio.ai.openai.api.http.HttpExecutorContext
-
Returns a hash code value for this object.
- hashCode() - Method in record class bg.codexio.ai.openai.api.http.HttpTimeout
-
Returns a hash code value for this object.
- hashCode() - Method in record class bg.codexio.ai.openai.api.http.HttpTimeouts
-
Returns a hash code value for this object.
- hashCode() - Method in record class bg.codexio.ai.openai.api.http.OpenAIHttpExecutor.ReactiveExecution
-
Returns a hash code value for this object.
- HttpCallFailedException - Exception Class in bg.codexio.ai.openai.api.http.exception
- HttpCallFailedException(String, Throwable) - Constructor for exception class bg.codexio.ai.openai.api.http.exception.HttpCallFailedException
- HttpExecutorContext - Record Class in bg.codexio.ai.openai.api.http
-
Context object holding authentication and timeout configuration
- HttpExecutorContext(ApiCredentials) - Constructor for record class bg.codexio.ai.openai.api.http.HttpExecutorContext
-
Constructing the object with default timeouts.
- HttpExecutorContext(ApiCredentials, HttpTimeouts) - Constructor for record class bg.codexio.ai.openai.api.http.HttpExecutorContext
-
Creates an instance of a
HttpExecutorContextrecord class. - HttpTimeout - Record Class in bg.codexio.ai.openai.api.http
-
Representation of an HTTP Timeout.
- HttpTimeout(long, TimeUnit) - Constructor for record class bg.codexio.ai.openai.api.http.HttpTimeout
-
Creates an instance of a
HttpTimeoutrecord class. - HttpTimeouts - Record Class in bg.codexio.ai.openai.api.http
-
Context object hinting the variety of timeouts
- HttpTimeouts(HttpTimeout, HttpTimeout, HttpTimeout) - Constructor for record class bg.codexio.ai.openai.api.http.HttpTimeouts
-
Creates an instance of a
HttpTimeoutsrecord class. - hydrateFormData(MultipartBody.Builder, Object, Set<Object>) - Method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
I
- ImageVariationHttpExecutor - Class in bg.codexio.ai.openai.api.http.images
-
Implementation for Create Image Variation API
- ImageVariationHttpExecutor(HttpExecutorContext, ObjectMapper) - Constructor for class bg.codexio.ai.openai.api.http.images.ImageVariationHttpExecutor
- ImageVariationHttpExecutor(OkHttpClient, String, ObjectMapper) - Constructor for class bg.codexio.ai.openai.api.http.images.ImageVariationHttpExecutor
- intercept(Interceptor.Chain) - Method in class bg.codexio.ai.openai.api.http.AuthenticationInterceptor
-
Sends the
ApiCredentials.apiKey()as a Bearer token.
L
- lines() - Method in record class bg.codexio.ai.openai.api.http.OpenAIHttpExecutor.ReactiveExecution
-
Returns the value of the
linesrecord component. - log(String, Object...) - Method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
O
- objectMapper - Variable in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
- OpenAIHttpExecutor<I,
O> - Interface in bg.codexio.ai.openai.api.http -
Abstraction over HTTP execution to OpenAPI.
- OpenAIHttpExecutor.ReactiveExecution<O> - Record Class in bg.codexio.ai.openai.api.http
-
Data holder for the response of
OpenAIHttpExecutor.executeReactive(Streamable) - OpenAIRespondedNot2xxException - Exception Class in bg.codexio.ai.openai.api.http.exception
- OpenAIRespondedNot2xxException(ErrorResponseHolder, int) - Constructor for exception class bg.codexio.ai.openai.api.http.exception.OpenAIRespondedNot2xxException
P
- period() - Method in record class bg.codexio.ai.openai.api.http.HttpTimeout
-
Returns the value of the
periodrecord component. - prepareRequest(EditImageRequest) - Method in class bg.codexio.ai.openai.api.http.images.EditImageHttpExecutor
- prepareRequest(ImageVariationRequest) - Method in class bg.codexio.ai.openai.api.http.images.ImageVariationHttpExecutor
- prepareRequest(TranscriptionRequest) - Method in class bg.codexio.ai.openai.api.http.voice.TranscriptionHttpExecutor
- prepareRequest(TranslationRequest) - Method in class bg.codexio.ai.openai.api.http.voice.TranslationHttpExecutor
- prepareRequest(I) - Method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
R
- ReactiveExecution(Flux<String>, Mono<O>) - Constructor for record class bg.codexio.ai.openai.api.http.OpenAIHttpExecutor.ReactiveExecution
-
Creates an instance of a
ReactiveExecutionrecord class. - read() - Method in record class bg.codexio.ai.openai.api.http.HttpTimeouts
-
Returns the value of the
readrecord component. - reinitializeExecutionIdentification() - Method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
- resourceUri - Variable in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
- response() - Method in record class bg.codexio.ai.openai.api.http.OpenAIHttpExecutor.ReactiveExecution
-
Returns the value of the
responserecord component. - responseType - Variable in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
S
- setFormDataMimeType(String) - Method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
- setMultipartBoundary(String) - Method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
- setMultipartBoundary(String) - Method in class bg.codexio.ai.openai.api.http.images.EditImageHttpExecutor
- setMultipartBoundary(String) - Method in class bg.codexio.ai.openai.api.http.voice.TranscriptionHttpExecutor
- setMultipartBoundary(String) - Method in class bg.codexio.ai.openai.api.http.voice.TranslationHttpExecutor
- SpeechHttpExecutor - Class in bg.codexio.ai.openai.api.http.voice
-
Implementation for Text-To-Speech API
- SpeechHttpExecutor(HttpExecutorContext, ObjectMapper) - Constructor for class bg.codexio.ai.openai.api.http.voice.SpeechHttpExecutor
- SpeechHttpExecutor(OkHttpClient, String, ObjectMapper) - Constructor for class bg.codexio.ai.openai.api.http.voice.SpeechHttpExecutor
- streamable - Variable in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
T
- timeouts() - Method in record class bg.codexio.ai.openai.api.http.HttpExecutorContext
-
Returns the value of the
timeoutsrecord component. - timeUnit() - Method in record class bg.codexio.ai.openai.api.http.HttpTimeout
-
Returns the value of the
timeUnitrecord component. - toError(String) - Method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
- toFormData(Object) - Method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
- toJson(I) - Method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
- toResponse(String) - Method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
- toResponse(String) - Method in class bg.codexio.ai.openai.api.http.voice.SpeechHttpExecutor
- toResponse(String) - Method in class bg.codexio.ai.openai.api.http.voice.TranscriptionHttpExecutor
- toResponse(String) - Method in class bg.codexio.ai.openai.api.http.voice.TranslationHttpExecutor
- toResponse(Response) - Method in class bg.codexio.ai.openai.api.http.DefaultOpenAIHttpExecutor
- toResponse(Response) - Method in class bg.codexio.ai.openai.api.http.voice.SpeechHttpExecutor
- toString() - Method in record class bg.codexio.ai.openai.api.http.HttpExecutorContext
-
Returns a string representation of this record class.
- toString() - Method in record class bg.codexio.ai.openai.api.http.HttpTimeout
-
Returns a string representation of this record class.
- toString() - Method in record class bg.codexio.ai.openai.api.http.HttpTimeouts
-
Returns a string representation of this record class.
- toString() - Method in record class bg.codexio.ai.openai.api.http.OpenAIHttpExecutor.ReactiveExecution
-
Returns a string representation of this record class.
- TranscriptionHttpExecutor - Class in bg.codexio.ai.openai.api.http.voice
-
Implementation for Speech-To-Text API
- TranscriptionHttpExecutor(HttpExecutorContext, ObjectMapper) - Constructor for class bg.codexio.ai.openai.api.http.voice.TranscriptionHttpExecutor
- TranscriptionHttpExecutor(OkHttpClient, String, ObjectMapper) - Constructor for class bg.codexio.ai.openai.api.http.voice.TranscriptionHttpExecutor
- TranslationHttpExecutor - Class in bg.codexio.ai.openai.api.http.voice
-
Implementation for Translations API
- TranslationHttpExecutor(HttpExecutorContext, ObjectMapper) - Constructor for class bg.codexio.ai.openai.api.http.voice.TranslationHttpExecutor
- TranslationHttpExecutor(OkHttpClient, String, ObjectMapper) - Constructor for class bg.codexio.ai.openai.api.http.voice.TranslationHttpExecutor
U
- UnparseableRequestException - Exception Class in bg.codexio.ai.openai.api.http.exception
- UnparseableRequestException() - Constructor for exception class bg.codexio.ai.openai.api.http.exception.UnparseableRequestException
- UnparseableRequestException(Throwable) - Constructor for exception class bg.codexio.ai.openai.api.http.exception.UnparseableRequestException
- UnparseableResponseException - Exception Class in bg.codexio.ai.openai.api.http.exception
- UnparseableResponseException(String, Class<?>, Throwable) - Constructor for exception class bg.codexio.ai.openai.api.http.exception.UnparseableResponseException
V
- VisionHttpExecutor - Class in bg.codexio.ai.openai.api.http.vision
-
Implementation for Vision API
- VisionHttpExecutor(HttpExecutorContext, ObjectMapper) - Constructor for class bg.codexio.ai.openai.api.http.vision.VisionHttpExecutor
- VisionHttpExecutor(OkHttpClient, String, ObjectMapper) - Constructor for class bg.codexio.ai.openai.api.http.vision.VisionHttpExecutor
W
- withCallTimeout(long, TimeUnit) - Method in record class bg.codexio.ai.openai.api.http.HttpExecutorContext
- withConnectTimeout(long, TimeUnit) - Method in record class bg.codexio.ai.openai.api.http.HttpExecutorContext
- withReadTimeout(long, TimeUnit) - Method in record class bg.codexio.ai.openai.api.http.HttpExecutorContext
All Classes and Interfaces|All Packages|Serialized Form