Skip to content

Commit

Permalink
로직 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
qogustj committed Jul 4, 2024
1 parent 4f4e2ab commit 79904a2
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,17 @@ 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());
// emailResDto = extractEmailTemplate(result.getText());
if (result.getText().equals("Hmm, I'm not sure")) {
// ConversationQARes result = windyfloMailClient.findMailInVectorDB(windyfloReq.prompt());
//// emailResDto = extractEmailTemplate(result.getText());
// if (result.getText().equals("Hmm, I'm not sure")) {
emailResDto = extractEmailTemplate(windyfloMailClient.createMail(windyfloReq.prompt()));
}
else
emailResDto = extractEmailTemplate(result.getText());
// System.out.println(result.getText());
//// }
// else
// emailResDto = extractEmailTemplate(result.getText());
//// System.out.println(result.getText());
}
return emailResDto;
r.
eturn emailResDto;
}

public EmailResDto extractEmailTemplate(Object input) throws IOException {
Expand Down

0 comments on commit 79904a2

Please sign in to comment.