add openai pdf upload support

This commit is contained in:
Tanmay Deep Sharma
2025-08-04 18:47:16 +05:30
parent 51b9fd8eca
commit 634782ea65
13 changed files with 693 additions and 5 deletions
@@ -0,0 +1,23 @@
class PdfProcessingError < CustomExceptions::Base
def initialize(message = 'PDF processing failed')
super(message)
end
end
class PdfUploadError < PdfProcessingError
def initialize(message = 'PDF upload failed')
super(message)
end
end
class PdfValidationError < PdfProcessingError
def initialize(message = 'PDF validation failed')
super(message)
end
end
class PdfFaqGenerationError < PdfProcessingError
def initialize(message = 'PDF FAQ generation failed')
super(message)
end
end