Repository navigation
fix(batch): retain OpenAI request error messages and HTTP status - #2906
Merged
Merged
Conversation
Co-authored-by: panditshivam <shivampandit@icloud.com> Co-authored-by: Liang Xu <lx3133584@users.noreply.github.com> Co-authored-by: Saif Modan <185626776+saifmodan2006@users.noreply.github.com> Co-authored-by: Dan Trapp <125120+dantrapp@users.noreply.github.com>
This was referenced Nov 5, 2026
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
instructor | 2778828 | Commit Preview URL Branch Preview URL |
Nov 05 2026, 06:28 PM |
Co-authored-by: SWAPI03 <swapnil300303@gmail.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Consolidates OpenAI batch request error handling. Current main already retrieves both output and error files for completed jobs, preserves the raw record and uses provider type before code. Keep that public contract, preserve string errors at either location, and report unsuccessful HTTP status codes when the provider omits the error body. The full provider code is available in raw_data when both type and code are present.
Validation: 90 offline tests passed across parsing, retrieval, file downloads and malformed records.
The OpenAI and Anthropic download tests from #2804 verify that non-ASCII results are written as UTF-8 on platforms with an ASCII default. The production encoding fix shipped in #2708.
Consolidates #2820, #2822, #2825, #2657 and #2804.