Index

A C D E F G H I M O P R T U 
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.model - package ai.optfor.springopenaiapi.model
 
assistantMessage(String) - Static method in record class ai.optfor.springopenaiapi.model.ChatMessage
 

C

chat(String, String, String, Integer, double, String) - Method in class ai.optfor.springopenaiapi.OpenAIApi
 
chat(String, List<ChatMessage>, int, double, String) - 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 ChatChoice record 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 ChatCompletionRequest record 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 ChatCompletionResponse record 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 ChatMessage record class.
choices() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionResponse
Returns the value of the choices record component.
completion_tokens() - Method in record class ai.optfor.springopenaiapi.model.Usage
Returns the value of the completion_tokens record component.
content() - Method in record class ai.optfor.springopenaiapi.model.ChatMessage
Returns the value of the content record 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 data record component.
DefaultPromptCache - Class in ai.optfor.springopenaiapi.cache
 
DefaultPromptCache() - Constructor for class ai.optfor.springopenaiapi.cache.DefaultPromptCache
 

E

embedding() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingData
Returns the value of the embedding record component.
embedding(String, String, String) - Method in class ai.optfor.springopenaiapi.OpenAIApi
 
embedding(String, 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 EmbeddingData record 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 EmbeddingRequest record 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 EmbeddingResponse record 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 finishReason record 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
 
getFirstCompletion() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionResponse
 
getFirstCompletion() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingResponse
 

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 index record component.
input() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingRequest
Returns the value of the input record component.

M

max_tokens() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionRequest
Returns the value of the max_tokens record component.
message() - Method in record class ai.optfor.springopenaiapi.model.ChatChoice
Returns the value of the message record component.
messages() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionRequest
Returns the value of the messages record component.
model() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionRequest
Returns the value of the model record component.
model() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionResponse
Returns the value of the model record component.
model() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingRequest
Returns the value of the model record component.
model() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingResponse
Returns the value of the model record 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_tokens record 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 role record 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 temperature record 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_tokens record component.

U

usage() - Method in record class ai.optfor.springopenaiapi.model.ChatCompletionResponse
Returns the value of the usage record component.
usage() - Method in record class ai.optfor.springopenaiapi.model.EmbeddingResponse
Returns the value of the usage record 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 Usage record class.
A C D E F G H I M O P R T U 
All Classes and Interfaces|All Packages