-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
feat(preview): added service upload #979
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Risk Level 2 - /home/runner/work/quivr/quivr/backend/core/main.py The code seems to be well-structured and follows the SOLID principles. However, there are a few areas that could be improved for better readability and maintainability:
Here's an example of how you could refactor the @app.exception_handler(RequestValidationError)
async def validation_exception_handler(request: Request, exc: RequestValidationError):
exc_str = str(exc).replace('\
', ' ').replace(' ', ' ')
logger.error(f'Request: {request}, Error: {exc_str}')
content = {
'status_code': status.HTTP_422_UNPROCESSABLE_ENTITY,
'message': exc_str,
'data': None,
}
return JSONResponse(content=content, status_code=status.HTTP_422_UNPROCESSABLE_ENTITY)
🌍💼 (Environment Variables), 🚫📝 (Error Handling), 🚀🐌 (Slow Startup) Powered by Code Review GPT |
* feat(docker): improved size image * feat(preview): added upload service * ci(aws): using matrix
Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Checklist before requesting a review
Please delete options that are not relevant.
Screenshots (if appropriate):