This repository has been archived by the owner on Jan 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add human-friendly message to OpenAI non-2xx responses
The [fault](https://github.com/Southclaws/fault) package is used to improve the clarity of errors caused by non-2xx HTTP responses. This improves the UI and hides the implementation details of the connector. `pipeline-backend` will then search for issues (i.e. the appended message) when handling errors from connectors. This commit removes the integration tests, which didn't compile nor succeed, and adds an integration test for OpenAI API errors. New integration tests can be added as functionality changes. The logic implemented before this commit can be referenced for new integration tests.
- Loading branch information
Showing
7 changed files
with
188 additions
and
449 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
.idea | ||
|
||
# Test files | ||
pkg/test_artifacts/ | ||
*.test | ||
|
||
# Go env | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.