Skip to content
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: handle OasstError in OasstApiClient #300

Merged
merged 11 commits into from Jan 3, 2023

Conversation

jack-michaud
Copy link
Collaborator

@jack-michaud jack-michaud commented Jan 3, 2023

Fixes step 3 of #243

  • feat: add OasstErrorResponse to protocols
  • feat: handle OasstError in OasstApiClient
  • test: add test for handling OasstError
  • test: add test for unhandled api error

Embarrassingly, failed tests were not surfacing in CI, so that's fixed in 789593b. This issue effectively hid the fact that the tests were failing to run because of a missing dependency in oasst-shared, and that's fixed in fbcb0a0.

Copy link
Collaborator

@yk yk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks solid, thank you!

@yk yk merged commit 9dd6c74 into LAION-AI:main Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants