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(String 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 content) static ChatMessageChatMessage.contentMessage(String content) ChatChoice.message()Returns the value of themessagerecord component.static ChatMessageChatMessage.roleMessage(String content) 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, String finishReason) 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) Creates an instance of aChatCompletionRequestrecord class.