Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python: Add user agent to OpenAI and OpenAPI headers (#3488)
### Motivation and Context Replaces: #3074 This PR adds the User-Agent header "Semantic Kernel" to calls made to OpenAI/Azure OpenAI and OpenAPI calls. ### Description * Addition of telemetry.py file containing telemetry constants * ability to disable Azure/OpenAI telemetry with an environment variable called AZURE_TELEMETRY_DISABLED ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄 --------- Co-authored-by: Devis Lucato <[email protected]>
- Loading branch information