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

Optimize Client Error Return #856

Merged
merged 6 commits into from
Sep 26, 2024

Conversation

eiixy
Copy link
Contributor

@eiixy eiixy commented Sep 20, 2024

fix: #836 #806 #777

@eiixy eiixy marked this pull request as draft September 20, 2024 10:42
Copy link

codecov bot commented Sep 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.04%. Comparing base (774fc9d) to head (1594268).
Report is 55 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #856      +/-   ##
==========================================
+ Coverage   98.46%   99.04%   +0.58%     
==========================================
  Files          24       26       +2     
  Lines        1364     1461      +97     
==========================================
+ Hits         1343     1447     +104     
+ Misses         15        8       -7     
  Partials        6        6              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@eiixy eiixy marked this pull request as ready for review September 24, 2024 02:01
@j2gg0s
Copy link

j2gg0s commented Sep 24, 2024

Can we add a field to RequestError to log the body when the server returns a response that is neither JSON nor an ErrorResponse?

Copy link
Owner

@sashabaranov sashabaranov left a comment

Choose a reason for hiding this comment

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

Great job, thank you!

@sashabaranov sashabaranov merged commit 38bdc81 into sashabaranov:master Sep 26, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modify assistant notice: invalid character '<' looking for beginning of value
3 participants