Skip to content

Conversation

@howieleung
Copy link
Member

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

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 PR enhances User-Agent header handling by adding the Azure AI Projects SDK version to the OpenAI client's User-Agent header for better telemetry tracking, and sanitizes the User-Agent header in test recordings to prevent platform-specific variations from causing test failures.

Changes:

  • Added SDK version to User-Agent header in OpenAI client requests for telemetry
  • Enhanced test recording sanitization to handle User-Agent header variations
  • Updated test assets tag to include new test recordings

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
sdk/ai/azure-ai-projects/azure/ai/projects/_patch.py Imports VERSION constant and appends SDK version to User-Agent header in logging transport
sdk/ai/azure-ai-projects/tests/conftest.py Adds import and sanitizer for User-Agent header to prevent platform-specific test failures
sdk/ai/azure-ai-projects/assets.json Updates test assets tag to reference new recordings with sanitized User-Agent

…tag and enhance User-Agent header sanitization in tests
@howieleung howieleung force-pushed the howie/openai-client-with-project-sdk-version branch from 6e292bf to 52e71f6 Compare January 15, 2026 21:16
@yuenhol
Copy link

yuenhol commented Jan 15, 2026

/azp run-ed

@azure-pipelines
Copy link

Command 'run-ed' is not supported by Azure Pipelines.

Supported commands
  • help:
    • Get descriptions, examples and documentation about supported commands
    • Example: help "command_name"
  • list:
    • List all pipelines for this repository using a comment.
    • Example: "list"
  • run:
    • Run all pipelines or specific pipelines for this repository using a comment. Use this command by itself to trigger all related pipelines, or specify specific pipelines to run.
    • Example: "run" or "run pipeline_name, pipeline_name, pipeline_name"
  • where:
    • Report back the Azure DevOps orgs that are related to this repository and org
    • Example: "where"

See additional documentation.

@yuenhol
Copy link

yuenhol commented Jan 15, 2026

/azp run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 44672 in repo Azure/azure-sdk-for-python

@howieleung
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list.

@howieleung
Copy link
Member Author

/azp run pullrequest (Build Test job_1_macos311)

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@howieleung
Copy link
Member Author

/azp run Test job_1_macos311

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@howieleung
Copy link
Member Author

/azp run *

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@howieleung
Copy link
Member Author

/azp run python - pullrequest (Build Test job_1_macos311)

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@howieleung
Copy link
Member Author

/azp run Build Test job_1_macos311

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@howieleung
Copy link
Member Author

/azp run python - pullrequest

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@scbedd
Copy link
Member

scbedd commented Jan 16, 2026

/azp run python - pullrequest

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants