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 cf43e51 commit b223792Copy full SHA for b223792
application/src/main/java/org/togetherjava/tjbot/features/chaptgpt/ChatGptService.java
@@ -73,6 +73,9 @@ public Optional<String> ask(String question) {
73
"There was an error using the OpenAI API: {} Code: {} Type: {} Status Code: {}",
74
openAiHttpException.getMessage(), openAiHttpException.code,
75
openAiHttpException.type, openAiHttpException.statusCode);
76
+ } catch (RuntimeException runtimeException) {
77
+ logger.warn("There was an error using the OpenAI API: {}",
78
+ runtimeException.getMessage());
79
}
80
return Optional.empty();
81
0 commit comments