-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Compatible with the 2023-07-01-preview API interface of Azure Openai, when content interception is triggered, the error message will contain innererror #460
Conversation
Codecov Report
@@ Coverage Diff @@
## master #460 +/- ##
==========================================
+ Coverage 97.05% 97.07% +0.02%
==========================================
Files 17 17
Lines 714 719 +5
==========================================
+ Hits 693 698 +5
Misses 15 15
Partials 6 6
|
@vvatanabe @sashabaranov I would like you to review this PR. Please feel free to communicate with me if you have any questions. Thanks!👍 |
df5aa94
to
098fe53
Compare
…ce about the error information returned by the intercepted interface
@vvatanabe THANKS!Modified, hope you take the time to review! |
@ZeroDeng01 Thank you for your diligent efforts and patience in addressing the feedback. |
… when content interception is triggered, the error message will contain innererror.InnerError struct is only valid for Azure OpenAI Service.
@ZeroDeng01 I merged this PR! Thanks! |
Describe the change
Compatible with the
2023-07-01-preview
API interface of Azure Openai, when content interception is triggered, the error message will containinnererror
Describe your solution
Add the parsing of the innererror node in the error message, and it is compatible with the old version of the interface.
Tests
Related test cases have been added to
error_test.go
Additional context
CURL request logging