feat: enhance document processing with AI suggestions and preview image support
- Added AI_SUGGESTION event to DocumentEvent enum for improved document interaction. - Implemented updateDocumentPreviewImage mutation in DocumentSchema to allow updating of document preview images. - Integrated grammar checking functionality in DocumentService, utilizing OpenAI for real-time suggestions and caching results in Redis. - Enhanced MinioService with methods for file upsert and document content retrieval. - Updated PrismaTypes to include new relations and fields for better data structure alignment. - Commented out unused RESTful service methods for future cleanup. These changes improve the document editing experience by leveraging AI capabilities and enhancing the schema for better data management.
This commit is contained in:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user