Index
All Classes and Interfaces|All Packages
A
- ai.optfor.springopenaiapi - package ai.optfor.springopenaiapi
- ai.optfor.springopenaiapi.cache - package ai.optfor.springopenaiapi.cache
- ai.optfor.springopenaiapi.enums - package ai.optfor.springopenaiapi.enums
- ai.optfor.springopenaiapi.model - package ai.optfor.springopenaiapi.model
- apiValueOf(String) - Static method in enum class ai.optfor.springopenaiapi.enums.EmbedModel
- apiValueOf(String) - Static method in enum class ai.optfor.springopenaiapi.enums.LLMModel
- assistantMessage(String) - Static method in record class ai.optfor.springopenaiapi.model.ChatMessage
C
- chat(LLMModel, String, String, Integer, double, String) - Method in class ai.optfor.springopenaiapi.OpenAIApi
- chat(LLMModel, String, String, String, Integer, double, String) - Method in class ai.optfor.springopenaiapi.OpenAIApi
- chat(LLMModel, List<ChatMessage>, int, double, String) - Method in class ai.optfor.springopenaiapi.OpenAIApi
- ChatChoice - Record Class in ai.optfor.springopenaiapi.model
- ChatChoice(int, ChatMessage, ChatMessage, String) - Constructor for record class ai.optfor.springopenaiapi.model.ChatChoice
-
Creates an instance of a
ChatChoicerecord class. - ChatCompletionRequest - Record Class in ai.optfor.springopenaiapi.model
- ChatCompletionRequest(String, List<ChatMessage>, double, int, boolean) - Constructor for record class ai.optfor.springopenaiapi.model.ChatCompletionRequest
-
Creates an instance of a
ChatCompletionRequestrecord class. - ChatCompletionResponse - Record Class in ai.optfor.springopenaiapi.model
- ChatCompletionResponse(String, List<ChatChoice>, Usage) - Constructor for record class ai.optfor.springopenaiapi.model.ChatCompletionResponse
-
Creates an instance of a
ChatCompletionResponserecord class. - ChatMessage - Record Class in ai.optfor.springopenaiapi.model
- ChatMessage(String, String) - Constructor for record class ai.optfor.springopenaiapi.model.ChatMessage
-
Creates an instance of a
ChatMessagerecord class. - choices() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionResponse
-
Returns the value of the
choicesrecord component. - completion_tokens() - Method in record class ai.optfor.springopenaiapi.model.Usage
-
Returns the value of the
completion_tokensrecord component. - content() - Method in record class ai.optfor.springopenaiapi.model.ChatMessage
-
Returns the value of the
contentrecord component.
D
- data() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingResponse
-
Returns the value of the
datarecord component. - DefaultPromptCache - Class in ai.optfor.springopenaiapi.cache
- DefaultPromptCache() - Constructor for class ai.optfor.springopenaiapi.cache.DefaultPromptCache
- delta() - Method in record class ai.optfor.springopenaiapi.model.ChatChoice
-
Returns the value of the
deltarecord component.
E
- embedding() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingData
-
Returns the value of the
embeddingrecord component. - embedding(EmbedModel, String, String) - Method in class ai.optfor.springopenaiapi.OpenAIApi
- embedding(EmbedModel, List<String>, String) - Method in class ai.optfor.springopenaiapi.OpenAIApi
- EmbeddingData - Record Class in ai.optfor.springopenaiapi.model
- EmbeddingData(List<Double>) - Constructor for record class ai.optfor.springopenaiapi.model.EmbeddingData
-
Creates an instance of a
EmbeddingDatarecord class. - EmbeddingRequest - Record Class in ai.optfor.springopenaiapi.model
- EmbeddingRequest(String, List<String>) - Constructor for record class ai.optfor.springopenaiapi.model.EmbeddingRequest
-
Creates an instance of a
EmbeddingRequestrecord class. - EmbeddingResponse - Record Class in ai.optfor.springopenaiapi.model
- EmbeddingResponse(String, List<EmbeddingData>, Usage) - Constructor for record class ai.optfor.springopenaiapi.model.EmbeddingResponse
-
Creates an instance of a
EmbeddingResponserecord class. - EmbedModel - Enum Class in ai.optfor.springopenaiapi.enums
- equals(Object) - Method in record class ai.optfor.springopenaiapi.model.ChatChoice
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class ai.optfor.springopenaiapi.model.ChatMessage
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class ai.optfor.springopenaiapi.model.EmbeddingData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class ai.optfor.springopenaiapi.model.EmbeddingRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class ai.optfor.springopenaiapi.model.EmbeddingResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class ai.optfor.springopenaiapi.model.Usage
-
Indicates whether some other object is "equal to" this one.
F
- finish_reason() - Method in record class ai.optfor.springopenaiapi.model.ChatChoice
-
Returns the value of the
finish_reasonrecord component.
G
- get(String) - Method in class ai.optfor.springopenaiapi.cache.DefaultPromptCache
- get(String) - Method in interface ai.optfor.springopenaiapi.cache.PromptCache
- getCost() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionResponse
- getCost() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingResponse
- getDelta() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionResponse
- getFirstCompletion() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionResponse
- getFirstCompletion() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingResponse
- GPT_3_5_TURBO - Enum constant in enum class ai.optfor.springopenaiapi.enums.LLMModel
- GPT_3_5_TURBO_16K - Enum constant in enum class ai.optfor.springopenaiapi.enums.LLMModel
- GPT_4 - Enum constant in enum class ai.optfor.springopenaiapi.enums.LLMModel
- GPT_4_TURBO_PREVIEW - Enum constant in enum class ai.optfor.springopenaiapi.enums.LLMModel
H
- hashCode() - Method in record class ai.optfor.springopenaiapi.model.ChatChoice
-
Returns a hash code value for this object.
- hashCode() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class ai.optfor.springopenaiapi.model.ChatMessage
-
Returns a hash code value for this object.
- hashCode() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingData
-
Returns a hash code value for this object.
- hashCode() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class ai.optfor.springopenaiapi.model.Usage
-
Returns a hash code value for this object.
I
- index() - Method in record class ai.optfor.springopenaiapi.model.ChatChoice
-
Returns the value of the
indexrecord component. - input() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingRequest
-
Returns the value of the
inputrecord component.
L
- LLMModel - Enum Class in ai.optfor.springopenaiapi.enums
M
- max_tokens() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionRequest
-
Returns the value of the
max_tokensrecord component. - message() - Method in record class ai.optfor.springopenaiapi.model.ChatChoice
-
Returns the value of the
messagerecord component. - messages() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionRequest
-
Returns the value of the
messagesrecord component. - model() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionRequest
-
Returns the value of the
modelrecord component. - model() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionResponse
-
Returns the value of the
modelrecord component. - model() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingRequest
-
Returns the value of the
modelrecord component. - model() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingResponse
-
Returns the value of the
modelrecord component.
O
- OpenAIApi - Class in ai.optfor.springopenaiapi
- OpenAIApi(PromptCache) - Constructor for class ai.optfor.springopenaiapi.OpenAIApi
P
- prompt_tokens() - Method in record class ai.optfor.springopenaiapi.model.Usage
-
Returns the value of the
prompt_tokensrecord component. - PromptCache - Interface in ai.optfor.springopenaiapi.cache
- put(String, String) - Method in class ai.optfor.springopenaiapi.cache.DefaultPromptCache
- put(String, String) - Method in interface ai.optfor.springopenaiapi.cache.PromptCache
R
- role() - Method in record class ai.optfor.springopenaiapi.model.ChatMessage
-
Returns the value of the
rolerecord component.
S
- stream() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionRequest
-
Returns the value of the
streamrecord component. - streamingChat(LLMModel, String, String, String, Integer, double, String) - Method in class ai.optfor.springopenaiapi.OpenAIApi
- systemMessage(String) - Static method in record class ai.optfor.springopenaiapi.model.ChatMessage
T
- temperature() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionRequest
-
Returns the value of the
temperaturerecord component. - TEXT_EMBEDDING_3_LARGE - Enum constant in enum class ai.optfor.springopenaiapi.enums.EmbedModel
- TEXT_EMBEDDING_3_SMALL - Enum constant in enum class ai.optfor.springopenaiapi.enums.EmbedModel
- TEXT_EMBEDDING_ADA_002 - Enum constant in enum class ai.optfor.springopenaiapi.enums.EmbedModel
- toString() - Method in record class ai.optfor.springopenaiapi.model.ChatChoice
-
Returns a string representation of this record class.
- toString() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionRequest
-
Returns a string representation of this record class.
- toString() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionResponse
-
Returns a string representation of this record class.
- toString() - Method in record class ai.optfor.springopenaiapi.model.ChatMessage
-
Returns a string representation of this record class.
- toString() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingData
-
Returns a string representation of this record class.
- toString() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingRequest
-
Returns a string representation of this record class.
- toString() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingResponse
-
Returns a string representation of this record class.
- toString() - Method in record class ai.optfor.springopenaiapi.model.Usage
-
Returns a string representation of this record class.
- total_tokens() - Method in record class ai.optfor.springopenaiapi.model.Usage
-
Returns the value of the
total_tokensrecord component.
U
- usage() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionResponse
-
Returns the value of the
usagerecord component. - usage() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingResponse
-
Returns the value of the
usagerecord component. - Usage - Record Class in ai.optfor.springopenaiapi.model
- Usage(int, int, int) - Constructor for record class ai.optfor.springopenaiapi.model.Usage
-
Creates an instance of a
Usagerecord class. - userMessage(String) - Static method in record class ai.optfor.springopenaiapi.model.ChatMessage
V
- valueOf(String) - Static method in enum class ai.optfor.springopenaiapi.enums.EmbedModel
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class ai.optfor.springopenaiapi.enums.LLMModel
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class ai.optfor.springopenaiapi.enums.EmbedModel
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class ai.optfor.springopenaiapi.enums.LLMModel
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages