Skip to content

.NET: Update retired Claude model in 04_MultiModelService sample - #8879

Merged
westey (westey-m) merged 2 commits into
microsoft:mainfrom
simonether:fix/multimodelservice-retired-claude
Oct 1, 2026
Merged

westey (westey-m) merged 2 commits into
microsoft:mainfrom
simonether:fix/multimodelservice-retired-claude

Conversation

@simonether

Copy link
Copy Markdown
Contributor

Motivation & Context

The .NET Start Here sample 03-workflows/_StartHere/04_MultiModelService uses claude-sonnet-4-20250514, which Anthropic retired on June 15, 2026 (model deprecations), so the reporter agent's requests fail when the sample runs. Details are in #8878.

Description & Review Guide

  • What are the major changes?
    • Program.cs: the Anthropic client uses claude-sonnet-4-6, the replacement Anthropic lists for claude-sonnet-4-20250514.
    • dotnet/eng/verify-samples/WorkflowSamples.cs: the entry for this sample lists the keys it reads (GOOGLE_GENAI_API_KEY, ANTHROPIC_API_KEY, OPENAI_API_KEY). It still named the Bedrock keys from before .NET: fix: 04_MultiModelService Workflows sample #5074 moved the researcher agent to Google.
  • What is the impact of these changes? The sample points at a model Anthropic currently serves. No library code changes.
  • What do you want reviewers to focus on? Whether you prefer a different current Claude model here; the other Anthropic samples in the repo mostly use claude-haiku-4-5 or claude-sonnet-4-5.

I haven't built or run the sample locally.

Related Issue

Fixes #8878

Contribution Checklist

  • The code builds clean without any errors or warnings
  • All unit tests pass, and I have added new tests where possible
  • The PR follows the Contribution Guidelines
  • This PR is linked to an issue and there is no other open PR for this issue (see Related Issue above).
  • This is not a breaking change. If it is a breaking change, add the breaking change label (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.

claude-sonnet-4-20250514 was retired by Anthropic on 2026-06-15; its
listed replacement is claude-sonnet-4-6. Also list the keys the sample
reads in its verify-samples entry (Google instead of Bedrock since microsoft#5074).

Fixes microsoft#8878

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The focused updates match the sample’s implementation and resolve the retired-model failure.

Review effort: Balanced
Findings: None

What changed in this PR

Updates the multi-model workflow sample to use an active Claude model and accurate provider configuration.

Changes:

  • Replaces the retired Claude Sonnet model.
  • Corrects required API keys and skip messaging.
File Description
Program.cs Uses claude-sonnet-4-6.
WorkflowSamples.cs Lists the sample’s current provider keys.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@simonether

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@westey-m
westey (westey-m) deployed to github-app-auth October 1, 2026 14:19 — with GitHub Actions Active
@westey-m
westey (westey-m) added this pull request to the merge queue Oct 1, 2026
Merged via the queue into microsoft:main with commit 99215f9 Oct 1, 2026
31 checks passed

This branch was successfully deployed

2 active deployments
github-app-auth — 6a1dfc7f Deployed Oct 1, 2026 by westey-m via add_label #24191
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NET Usage: [Issues, PRs], Target: .Net workflows Usage: [Issues, PRs], Target: Workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python: .NET: [Bug]: 04_MultiModelService sample uses retired claude-sonnet-4-20250514

3 participants