You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOGGER.warn("Requested a content-type of application/ndjson however did not requested streaming. Please use a content-type of application/json");
41
+
thrownewResponseStatusException(HttpStatus.BAD_REQUEST, "Requested a content-type of application/ndjson however did not requested streaming. Please use a content-type of application/json");
LOGGER.warn("Requested a content-type of application/json however also requested streaming. Please use a content-type of application/ndjson");
87
+
thrownewResponseStatusException(HttpStatus.BAD_REQUEST, "Requested a content-type of application/json however also requested streaming. Please use a content-type of application/ndjson");
LOGGER.warn("Requested a content-type of application/ndjson however did not requested streaming. Please use a content-type of application/json");
48
+
thrownewResponseStatusException(HttpStatus.BAD_REQUEST, "Requested a content-type of application/ndjson however did not requested streaming. Please use a content-type of application/json");
49
+
}
50
+
46
51
LOGGER.info("Received request for chat api with approach[{}]", chatRequest.approach());
47
52
48
53
if (!StringUtils.hasText(chatRequest.approach())) {
@@ -69,9 +74,6 @@ public ResponseEntity<StreamingResponseBody> openAIAskStream(
LOGGER.warn("Requested a content-type of application/json however also requested streaming. Please use a content-type of application/ndjson");
98
+
thrownewResponseStatusException(HttpStatus.BAD_REQUEST, "Requested a content-type of application/json however also requested streaming. Please use a content-type of application/ndjson");
99
+
}
100
+
94
101
LOGGER.info("Received request for chat api with approach[{}]", chatRequest.approach());
95
102
96
103
if (!StringUtils.hasText(chatRequest.approach())) {
0 commit comments