Index
All Classes and Interfaces|All Packages
A
- ai.optfor.springopenaiapi - package ai.optfor.springopenaiapi
- ai.optfor.springopenaiapi.model - package ai.optfor.springopenaiapi.model
- assistantMessage(String) - Static method in record class ai.optfor.springopenaiapi.model.ChatMessage
C
- cache - Variable in class ai.optfor.springopenaiapi.OpenAIApi
- chat(String, String, String, Integer, double) - Method in class ai.optfor.springopenaiapi.OpenAIApi
- chat(String, List<ChatMessage>, int, double) - Method in class ai.optfor.springopenaiapi.OpenAIApi
- ChatChoice - Record Class in ai.optfor.springopenaiapi.model
- ChatChoice(int, 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) - 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(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. - contentMessage(String) - Static method in record class ai.optfor.springopenaiapi.model.ChatMessage
D
- data() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingResponse
-
Returns the value of the
datarecord component.
E
- embedding() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingData
-
Returns the value of the
embeddingrecord component. - embedding(String, String) - Method in class ai.optfor.springopenaiapi.OpenAIApi
- embedding(String, List<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(List<EmbeddingData>, Usage) - Constructor for record class ai.optfor.springopenaiapi.model.EmbeddingResponse
-
Creates an instance of a
EmbeddingResponserecord class. - 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
- finishReason() - Method in record class ai.optfor.springopenaiapi.model.ChatChoice
-
Returns the value of the
finishReasonrecord component.
G
- getFirstCompletion() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionResponse
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.
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.EmbeddingRequest
-
Returns the value of the
modelrecord component.
O
- OpenAIApi - Class in ai.optfor.springopenaiapi
- OpenAIApi(String, RestTemplate, CacheManager) - 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.
R
- restTemplate - Variable in class ai.optfor.springopenaiapi.OpenAIApi
- role() - Method in record class ai.optfor.springopenaiapi.model.ChatMessage
-
Returns the value of the
rolerecord component. - roleMessage(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. - 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.
All Classes and Interfaces|All Packages