Repository navigation
.Net: Update default OpenAI image model to gpt-image-2 - #14530
nightcityblade wants to merge 1 commit into
Conversation
|
nightcityblade please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
1 similar comment
|
nightcityblade please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The fallback updates are consistent and the constructor behavior is covered by focused tests.
Review effort: Balanced
Findings: None
What changed in this PR
Updates the .NET OpenAI connector’s default image model ahead of gpt-image-1 retirement.
Changes:
- Changes both fallback paths to
gpt-image-2. - Tests default and explicit model selection.
| File | Description |
|---|---|
OpenAITextToImageService.cs |
Updates the constructor default model. |
ClientCore.TextToImage.cs |
Updates the generation fallback model. |
OpenAITextToImageServiceTests.cs |
Verifies default and explicit models. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Motivation and Context
OpenAI will retire
gpt-image-1on October 23, 2026. The .NET OpenAI connector currently selects that model whenever callers omit a model ID, so default image-generation calls would stop working after retirement.Fixes #14526.
Description
gpt-image-2.Contribution Checklist
Microsoft.Build.Tasks.Git8.0.0.