Skip to content

fix(providers): support OpenAI client 2.12#1654

Merged
Aaronontheweb merged 2 commits into
devfrom
fix/openai-2-12-responses-options
Jul 15, 2026
Merged

fix(providers): support OpenAI client 2.12#1654
Aaronontheweb merged 2 commits into
devfrom
fix/openai-2-12-responses-options

Conversation

@Aaronontheweb

Copy link
Copy Markdown
Collaborator

Failure

Dependabot PR #1650 upgrades Microsoft.Extensions.AI to 10.8.0, which brings OpenAI 2.12.0. OpenAI 2.12 changes the ResponsesClient credential constructor from OpenAIClientOptions to ResponsesClientOptions, causing CS1503 in every publish/build leg.

Fix

Centrally pin the transitive OpenAI client to 2.12.0 and migrate the OAuth Responses client to the response-specific options type. Pinning the transitive dependency makes this API migration buildable and testable on current dev before the Microsoft.Extensions.AI update lands.

Validation

  • dotnet build Netclaw.slnx -c Release --no-incremental
  • dotnet test src/Netclaw.Daemon.Tests/Netclaw.Daemon.Tests.csproj -c Release --no-build --filter FullyQualifiedName~ChatClientFactoryTests
  • dotnet slopwatch analyze
  • pwsh ./scripts/Add-FileHeaders.ps1 -Verify

The remaining NU1109 in #1650 is the independent 10.0.10 platform floor supplied by Dependabot PR #1649.

@Aaronontheweb
Aaronontheweb enabled auto-merge (squash) July 15, 2026 14:40
@Aaronontheweb
Aaronontheweb force-pushed the fix/openai-2-12-responses-options branch from 7af9550 to a707974 Compare July 15, 2026 14:56
@Aaronontheweb
Aaronontheweb merged commit df72b0a into dev Jul 15, 2026
21 checks passed
@Aaronontheweb
Aaronontheweb deleted the fix/openai-2-12-responses-options branch July 15, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant