Skip to content

fix(batch): retain OpenAI request error messages and HTTP status - #2906

Merged
jxnl-oai merged 2 commits into
mainfrom
consolidate/openai-batch-error-details
Nov 5, 2026
Merged

jxnl-oai merged 2 commits into
mainfrom
consolidate/openai-batch-error-details

Conversation

@jxnl-oai

@jxnl-oai jxnl-oai commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

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.

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>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

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>
@jxnl-oai
jxnl-oai merged commit f0236ca into main Nov 5, 2026
25 of 26 checks passed
@jxnl-oai
jxnl-oai deleted the consolidate/openai-batch-error-details branch November 5, 2026 18:48
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.

1 participant