feat(ai): 자연어 입력 시 분류·결제수단 자동 추천
사용자의 실제 카테고리·계좌 후보를 AI에 전달해 그 중에서 선택(할루시네이션 방지 검증). 라면→식비, 삼성카드→해당 계좌 등 폼 자동 채움 확장. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -307,7 +307,8 @@ public class AccountService {
|
||||
*/
|
||||
public ParsedEntryResponse parseText(NotificationRequest req) {
|
||||
java.time.LocalDate today = java.time.LocalDate.now();
|
||||
java.util.Optional<ParsedEntryResponse> ai = aiEntryParser.parse(req.getText(), today);
|
||||
java.util.Optional<ParsedEntryResponse> ai =
|
||||
aiEntryParser.parse(req.getText(), today, req.getCategoryHints(), req.getWalletHints());
|
||||
if (ai.isPresent() && ai.get().isRecognized()) {
|
||||
return ai.get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user