We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41f6e94 commit 88ebdd7Copy full SHA for 88ebdd7
application/src/main/java/org/togetherjava/tjbot/features/chatgpt/ChatGptService.java
@@ -158,21 +158,16 @@ private Optional<String> getMessageResponse(String message) {
158
.n(MAX_NUMBER_OF_RESPONSES)
159
.build();
160
161
- logger.debug("GPT tx payload: {}", message);
162
-
163
String response = openAiService.createChatCompletion(chatCompletionRequest)
164
.getChoices()
165
.getFirst()
166
.getMessage()
167
.getContent();
168
169
if (response == null) {
170
- logger.debug("Got empty response");
171
return Optional.empty();
172
}
173
174
- logger.debug("GPT rx: {}", response);
175
176
return Optional.of(response);
177
} catch (OpenAiHttpException openAiHttpException) {
178
logger.warn(
0 commit comments