github / github/app

Bug: AWS-Anthropic custom provider sends deprecated Anthropic request fields

Aperta
#3,217 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Nessun dato sulla lingua
Stelle
2.1k
Fork
153
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## Bug: AWS-Anthropic custom provider sends deprecated Anthropic request fields

### Environment
- GitHub Copilot App: 1.0.80
- OS: macOS
- Provider type: AWS-Anthropic
- Wire API: Anthropic Messages
- Model display name: claude-opus-4-8 / claude-opus-5
- Wire model sent to provider: anthropic.claude-opus-4-8 / anthropic.claude-opus-5
- Custom base URL: https:///anthropic
- Header: anthropic-version: 2023-06-01

### Steps to reproduce
1. Configure an AWS-Anthropic custom provider with an Anthropic Messages-compatible endpoint.
2. Configure Claude Opus 4.8 or Opus 5 using an `anthropic.` wire model ID.
3. Send a simple prompt such as “你好”.

### Actual result
The GitHub Copilot App sends legacy request fields. The upstream rejects them with:

- `400 temperature is deprecated for this model`
- `400 "thinking.type.enabled" is not supported for this model. Use "thinking.type.adaptive" and "output_config.effort" to control thinking behavior.`

### Expected result
For current Claude models, the AWS-Anthropic provider should omit deprecated sampling fields (`temperature`, `top_p`, `top_k`) and use the current thinking protocol:
`thinking.type: "adaptive"` with `output_config.effort`, or provide a per-model capability/protocol setting.

### Impact
The Custom endpoint provider cannot be used as a workaround because it only offers OpenAI-compatible Completions/Responses wire APIs, not Anthropic Messages. This prevents use of current Claude Bedrock models through a custom Anthropic endpoint without external request rewriting.

### Evidence
Attached screenshots show:
- the AWS-Anthropic provider and model configuration;
- real Copilot request failures;
- request IDs from the failed requests.

---
| Field | Value |
| --- | --- |
| App version | 1.1.14 |
| OS | macOS 15.7.5 |
| Theme | GitHub |
| Path | /chat |
| Tenure | Day 6 (Week 1) |

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Non sono indicati file o test. Inizia tracciando il percorso della richiesta Anthropic Messages del custom provider AWS-Anthropic e la gestione delle capacità del modello, quindi riproduci la richiesta con i Claude wire model IDs elencati. Il lavoro è completato quando i modelli attuali non ricevono più campi di sampling obsoleti e utilizzano il protocollo di adaptive thinking previsto, con copertura per la configurazione segnalata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
aws
Ambito
api, cloud
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Attiva
Chiarezza
Abbastanza chiara
Idoneità per principianti
48/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.