Skip to content

OpenAI Provider Cleanup - #43

Merged
beansrowning merged 7 commits into
devfrom
codex/openai-provider-cleanup
Sep 10, 2026
Merged

beansrowning merged 7 commits into
devfrom
codex/openai-provider-cleanup

Conversation

@beansrowning

Copy link
Copy Markdown
Collaborator

Changes

  • Cleaning up OpenAI/Azure teardown when closing via keyboard exit
  • Adding unit test for regression testing

beansrowning and others added 7 commits September 10, 2026 12:02
Co-authored-by: OpenAI Codex codex@openai.com
- Serializing once and passing that directly onward to post to API
- dropping _create_batch_file as a result
- Handling possible JSON encoding issues and sending exception onward per-request
- Generalizing _fail_too_large -> _fail_request for the above purpose
- Updating test suite
- Should help ease memory overhead a bit
- Also updating tests (thanks, codex)

Co-authored-by: OpenAI Codex codex@openai.com
Retain and close Azure credentials alongside async OpenAI clients, and compose batch-handler shutdown ahead of transport cleanup. Add coverage for keyboard interrupts and cleanup failures.

Co-authored-by: OpenAI Codex <codex@openai.com>
@beansrowning
beansrowning merged commit c311960 into dev Sep 10, 2026
4 of 5 checks passed
@beansrowning beansrowning mentioned this pull request Sep 10, 2026
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