Skip to content

Commit

Permalink
[chore]: windyflo url 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
qogustj committed Jul 9, 2024
1 parent 256095c commit 14ca36e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ public class WindyfloService {
public EmailResDto createMail(WindyfloReq windyfloReq) throws IOException {
EmailResDto emailResDto = new EmailResDto("", "", "");
while (emailResDto.template().isEmpty() || emailResDto.header().isEmpty() || emailResDto.body().isEmpty()) {
ConversationQARes result = windyfloMailClient.findMailInVectorDB(windyfloReq.prompt());
// ConversationQARes result = windyfloMailClient.findMailInVectorDB(windyfloReq.prompt());
// emailResDto = extractEmailTemplate(result.getText());
if (result.getText().equals("Hmm, I'm not sure")) {
// if (result.getText().equals("Hmm, I'm not sure")) {
emailResDto = extractEmailTemplate(windyfloMailClient.createMail(windyfloReq.prompt()));
}
else
emailResDto = extractEmailTemplate(result.getText());
// }
// else
// emailResDto = extractEmailTemplate(result.getText());

}
return emailResDto;
Expand Down

0 comments on commit 14ca36e

Please sign in to comment.