-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(PDFService): fix support for target/context PDFs #44
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I think we should strive for more consistency with the use of Pydantic Models and API design.
@@ -257,6 +262,7 @@ async def process_pdfs( | |||
async def convert_pdf( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this doesn't feel like good API design. Instead I would have:
target_files: List[UploadFile]
and context_files: List[UploadFile]
Target and context was not being correctly passed in from the frontend, where this is specified. This PR will fix it.