Skip to content

Conversation

@dgageot
Copy link
Member

@dgageot dgageot commented Feb 9, 2026

No description provided.

Signed-off-by: David Gageot <david.gageot@docker.com>
@dgageot dgageot requested a review from a team as a code owner February 9, 2026 09:40
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Looks good! No issues found.

I analyzed the new middleware implementation that preserves error details from OpenAI-compatible API responses. The code correctly:

  • Handles various error response formats (standard OpenAI errors, plain text, custom JSON structures)
  • Validates JSON before wrapping it
  • Properly manages response body lifecycle (read, close, replace)
  • Has comprehensive test coverage that all pass

The implementation is safe and follows reasonable patterns for HTTP middleware.

@dgageot dgageot merged commit e4cbc97 into docker:main Feb 9, 2026
8 checks passed
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.

2 participants