Skip to content

Commit bbb3959

Browse files
authored
document public method (#1051)
method for generating embeds for GPT responses
1 parent 5ac1e07 commit bbb3959

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

application/src/main/java/org/togetherjava/tjbot/features/help/HelpSystemHelper.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,14 @@ RestAction<Message> constructChatGptAttempt(ThreadChannel threadChannel,
159159
generateDismissButton(componentIdInteractor, idForDismissButton.toString())));
160160
}
161161

162+
/**
163+
* Generates a MessageEmbed for a response using AI.
164+
*
165+
* @param answer The response text generated by AI.
166+
* @param selfUser The SelfUser representing the bot.
167+
* @param title The title for the MessageEmbed.
168+
* @return A MessageEmbed that contains response generated by AI.
169+
*/
162170
public MessageEmbed generateGptResponseEmbed(String answer, SelfUser selfUser, String title) {
163171
String responseByGptFooter = "- AI generated response";
164172

0 commit comments

Comments
 (0)