Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ› [Bug] μ„œλ²„ 였λ₯˜ 처리 μœ„ν•œ 둜그 μ„€μ • #138

Merged
merged 2 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .platform/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ events {
}

http {
client_max_body_size 100M;
include /etc/nginx/mime.types;
default_type application/octet-stream;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public String soundToText(File file) {

return responseMono.block();
} catch (Exception e) {
e.printStackTrace();
throw new GlobalException(GlobalErrorCode._INTERNAL_SERVER_ERROR);
}
}
Expand All @@ -67,6 +68,7 @@ private String getTextFromResponse(String responseStr) {
try {
return objectMapper.readTree(responseStr).get("text").asText();
} catch (Exception e) {
e.printStackTrace();
throw new GlobalException(GlobalErrorCode._INTERNAL_SERVER_ERROR);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public String recommendMeetingToDo(String query) {
apiUrl, getHttpEntity(chatGptRequest), ChatGptResponse.class);
return response.getChoices().get(0).getMessage().getContent();
} catch (Exception e) {
e.printStackTrace();
throw new GlobalException(GlobalErrorCode._INTERNAL_SERVER_ERROR);
}
}
Expand Down Expand Up @@ -69,6 +70,7 @@ public String summarizeText(String text) {
restTemplate.postForObject(apiUrl, request, ChatGptResponse.class);

if (response == null) {
System.out.println("response is null");
throw new GlobalException(GlobalErrorCode._INTERNAL_SERVER_ERROR);
}

Expand Down
Loading