Uses of Record Class
ai.optfor.springopenaiapi.model.ChatMessage
Packages that use ChatMessage
-
Uses of ChatMessage in ai.optfor.springopenaiapi
Method parameters in ai.optfor.springopenaiapi with type arguments of type ChatMessageModifier and TypeMethodDescriptionOpenAIApi.chat(LLMModel model, List<ChatMessage> chats, int maxTokens, double temperature, String openaiKey) -
Uses of ChatMessage in ai.optfor.springopenaiapi.model
Methods in ai.optfor.springopenaiapi.model that return ChatMessageModifier and TypeMethodDescriptionstatic ChatMessageChatMessage.assistantMessage(String assistant) ChatChoice.delta()Returns the value of thedeltarecord component.ChatChoice.message()Returns the value of themessagerecord component.static ChatMessageChatMessage.systemMessage(String system) static ChatMessageChatMessage.userMessage(String user) Methods in ai.optfor.springopenaiapi.model that return types with arguments of type ChatMessageModifier and TypeMethodDescriptionChatCompletionRequest.messages()Returns the value of themessagesrecord component.Constructors in ai.optfor.springopenaiapi.model with parameters of type ChatMessageModifierConstructorDescriptionChatChoice(int index, ChatMessage message, ChatMessage delta, String finish_reason) Creates an instance of aChatChoicerecord class.Constructor parameters in ai.optfor.springopenaiapi.model with type arguments of type ChatMessageModifierConstructorDescriptionChatCompletionRequest(String model, List<ChatMessage> messages, double temperature, int max_tokens, boolean stream) Creates an instance of aChatCompletionRequestrecord class.