add clear api

This commit is contained in:
Chuck1sn
2025-06-14 14:04:58 +08:00
parent f559e4cde3
commit c64f2eb0f6
2 changed files with 12 additions and 0 deletions

View File

@@ -133,4 +133,9 @@ public class AiController {
}
departmentRepository.deleteByName(name);
}
@PostMapping("/chat/refresh")
void createNewConversation(Principal principal) {
aiChatService.evictChatMemory(principal.getName());
}
}