Skip to content

.Net: Add HttpClient parameter to AddAzureOpenAITextToImage method #12925

Merged
rogerbarreto merged 5 commits into
microsoft:mainfrom
imranshams:main
Aug 12, 2025
Merged

.Net: Add HttpClient parameter to AddAzureOpenAITextToImage method #12925
rogerbarreto merged 5 commits into
microsoft:mainfrom
imranshams:main

Conversation

@imranshams

@imranshams imranshams commented Aug 12, 2025

Copy link
Copy Markdown
Contributor

Motivation and Context

There is an issue, if we want to use custom httpClinet without ApiKey in Azure Open AI Text2Image services, it's not possible.
I added the new parameter in the same approach like other services, e. g. AddAzureOpenAIChatCompletion.
Referenced issue

Description

I added one new option parameter for Azure OpenAI Text2Image connector like other services: e. g. AddAzureOpenAIChatCompletion. The change is too small to keep review as easy as possible.

Contribution Checklist

@moonbox3 moonbox3 added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel labels Aug 12, 2025
@github-actions github-actions Bot changed the title Add HttpClient parameter to AddAzureOpenAITextToImage method .Net: Add HttpClient parameter to AddAzureOpenAITextToImage method Aug 12, 2025
@imranshams

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@microsoft-github-policy-service agree

@rogerbarreto rogerbarreto added this pull request to the merge queue Aug 12, 2025
Merged via the queue into microsoft:main with commit 99f09b4 Aug 12, 2025
19 checks passed
@imranshams

Copy link
Copy Markdown
Contributor Author

Hi @rogerbarreto, @SergeyMenshykh

Thanks for your support and effort!
May I ask you how is the release pipeline and roadmap? When will it be available in Nuget?

jcruzmot-te pushed a commit to thousandeyes/aia-semantic-kernel that referenced this pull request Sep 15, 2025
…icrosoft#12925)

### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->
There is an issue, if we want to use custom `httpClinet` without
`ApiKey` in Azure Open AI Text2Image services, it's not possible.
I added the new parameter in the same approach like other services, e.
g. `AddAzureOpenAIChatCompletion`.
[Referenced
issue](microsoft#12908)

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
I added one new option parameter for Azure OpenAI Text2Image connector
like other services: e. g. AddAzureOpenAIChatCompletion. The change is
too small to keep review as easy as possible.

### 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: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants