-
Notifications
You must be signed in to change notification settings - Fork 44.2k
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(market): swap to prisma direct query #8246
Conversation
PR Reviewer Guide πHere are some key observations to aid the review process:
|
β Deploy Preview for auto-gpt-docs canceled.
|
except prisma.errors.PrismaError as e: | ||
raise AgentQueryError(f"Database query failed: {str(e)}") | ||
except Exception as e: | ||
# raise AgentQueryError(f"Unexpected error occurred: {str(e)}") | ||
# Return an empty list of categories in case of unexpected errors | ||
return market.model.CategoriesResponse(unique_categories=[]) |
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.
Why? This won't show up as error now
Background
@aarushik93 requested this change for debugging marketplace issues
Changes ποΈ
swaps from a prisma raw query to a structured prisma query
Testing π
Note
Only for the new autogpt platform, currently in autogpt_platform/