Skip to content

Conversation

@jpalvarezl
Copy link
Member

Copilot AI review requested due to automatic review settings January 8, 2026 14:49
@jpalvarezl jpalvarezl requested review from a team, dargilco and trrwilson as code owners January 8, 2026 14:49
@github-actions github-actions bot added the AI label Jan 8, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request propagates changes from PR #47416 to integrate Azure's HttpPipeline with the OpenAI Java SDK for the azure-ai-projects module. The implementation adapts the Azure HTTP pipeline to work with OpenAI SDK clients, enabling the use of Azure's built-in retry policies, authentication, telemetry, and logging.

Key Changes:

  • Introduced HttpClientHelper to bridge Azure HttpPipeline with OpenAI's HttpClient interface
  • Added AzureHttpResponseAdapter to translate Azure responses to OpenAI format
  • Modified EvaluationsClient builders to use the Azure HttpPipeline instead of OpenAI's native HTTP handling

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
HttpClientHelper.java (azure-ai-projects) New adapter class that wraps Azure HttpPipeline to implement OpenAI HttpClient interface, handling request/response translation and exception mapping
AzureHttpResponseAdapter.java (azure-ai-projects) New adapter that exposes Azure HttpResponse as OpenAI HttpResponse for seamless integration
AIProjectClientBuilder.java Updated to inject HttpClientHelper into Evaluations clients, removed redundant user-agent and timeout configuration (now handled by pipeline), and set maxRetries to 0 to prevent duplicate retry logic
HttpClientHelper.java (azure-ai-agents) Enhanced exception mapping to properly handle AzureException by unwrapping the cause

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants