Skip to content

Commit 7b93897

Browse files
committed
Fixed GPT-generated titles
1 parent efce799 commit 7b93897

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

application/src/main/java/org/togetherjava/tjbot/features/moderation/TransferQuestionCommand.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,7 @@ public void onMessageContext(MessageContextInteractionEvent event) {
100100
.formatted(originalMessage);
101101
Optional<String> chatGptTitle = chatGptService.ask(chatGptTitleRequest, null);
102102
String title = chatGptTitle.orElse(createTitle(originalMessage));
103-
104-
// Fix
105103
title = title.replaceAll("^[\"']|[\"']$", "");
106-
//
107104

108105
if (title.length() > TITLE_MAX_LENGTH) {
109106
title = title.substring(0, TITLE_MAX_LENGTH);

0 commit comments

Comments
 (0)