Skip to content

Commit 0cbe7b2

Browse files
authored
Feature: Add useful links to ChatGPT response (#1125)
1 parent 99bc173 commit 0cbe7b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ private Optional<String> prepareChatGptQuestion(ThreadChannel threadChannel,
217217
.min(MAX_QUESTION_LENGTH - questionBuilder.length(), originalQuestion.length()));
218218

219219
questionBuilder.append(originalQuestion);
220+
221+
questionBuilder.append(
222+
". If possible, get, maximum, 5 top links from reliable websites as references in markdown syntax. Put this message on top of the links list \"Here are some links that may help :\".");
223+
220224
return Optional.of(questionBuilder.toString());
221225
}
222226

0 commit comments

Comments
 (0)