Skip to content

Commit d08b761

Browse files
ankitsmt211Taz03
authored andcommitted
Bug/gpt response compact (#994)
* refactor question builder for gpt feature * removing logic that prepends all applied tags to question builder * passing first tag as context to gptservice * setting context before sending the question * refactoring setup message * improving context * refactoring context for more appropriate responses * get matching tag or default for context * sending instructions along with question, instead of setup * prompt for shorter responses * values responsible for tweaking AI responses are not declared as constants, docs are also added for such values
1 parent a3843e0 commit d08b761

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ RestAction<Message> constructChatGptAttempt(ThreadChannel threadChannel,
129129

130130
String context = matchingTag.getName();
131131
chatGPTAnswer = chatGptService.ask(question, context);
132-
133132
if (chatGPTAnswer.isEmpty()) {
134133
return useChatGptFallbackMessage(threadChannel);
135134
}

0 commit comments

Comments
 (0)