Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Cerrado
#8,878 1 comentario 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@westey-m ya está trabajando en esto.

Desde el 30/9/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

.NET python reproduced
Description

The .NET Start Here workflow sample dotnet/samples/03-workflows/_StartHere/04_MultiModelService creates its Anthropic client with claude-sonnet-4-20250514 (Program.cs, line 17). Anthropic retired that model on June 15, 2026 and lists claude-sonnet-4-6 as its replacement on the model deprecations page, so the reporter agent's requests fail for anyone who runs the sample today.

The sample is in the solution (agent-framework-dotnet.slnx, line 301) and in the table in dotnet/samples/03-workflows/README.md. The automated check would not catch it: in dotnet/eng/verify-samples/WorkflowSamples.cs (line 59) the sample is skipped, and that entry still lists the Bedrock keys from before #5074 moved the researcher agent to Google.

Expected: the sample uses a current Anthropic model, and the verify-samples entry lists the keys the sample reads (GOOGLE_GENAI_API_KEY, ANTHROPIC_API_KEY, OPENAI_API_KEY).

The same model ID also appears in python/packages/anthropic/AGENTS.md (line 18), which is documentation rather than code.

I found this by reading the code at e23f3c8; I haven't run the sample.

Code Sample
IChatClient anthropic = new Anthropic.AnthropicClient(
    new() { ApiKey = Environment.GetEnvironmentVariable("ANTHROPIC_API_KEY") })
    .AsIChatClient("claude-sonnet-4-20250514");
Error Messages / Stack Traces

Not run.

Package Versions

main at e23f3c8 (the sample references the Anthropic package through central package management)

.NET Version

Not run

Additional Context

I'm happy to open the PR for this.

Lenguaje dominante
Python
Estrellas
14.2k
Forks
2.5k
Merge medio
2 d 9 h
PR fusionados (30 d)
369

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de microsoft/agent-framework

Todos los issues de microsoft/agent-framework

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.