Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Anthropic Bedrock request fails because SDK sends deprecated temperature parameter for Opus models

Aperta
#1,557 5 commenti 4 reazioni 1 assegnatario Vedi su GitHub

@roji ci sta già lavorando.

Dal 3/6/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug

When using Copilot SDK with Anthropic provider via Bedrock Mantle, Opus 4.7 and 4.8 inference fails with HTTP 400 because the upstream API rejects temperature for this model.

Error:
400 invalid_request_error: temperature is deprecated for this model.

Environment:

  • @github/copilot-sdk: 1.0.0 (also seen previously on 1.0.0-beta.12)
  • Runtime: Node.js on macOS
  • Provider: Anthropic via Bedrock Mantle
  • Model: anthropic.claude-opus-4-7/anthropic.claude-opus-4-8

Code to replicate:

import { CopilotClient, approveAll } from "@github/copilot-sdk";

const client = new CopilotClient();

await client.start();
const session = await client.createSession({
  onPermissionRequest: approveAll,
  provider: {
    type: "anthropic",
    baseUrl: `https://bedrock-mantle.${process.env.AWS_REGION}.api.aws/anthropic`,
    apiKey: process.env.BEDROCK_API_KEY,
    modelId: "anthropic.claude-opus-4-7", // Or "anthropic.claude-opus-4-8"
  },
});

const response = await session.sendAndWait({
  prompt: "List tools and skills.",
});

console.log(response);

await session.disconnect();
Lingua principale
Java
Stelle
10.5k
Fork
1.5k
Merge medio
1g 9h
PR unite (30g)
130

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/copilot-sdk

Tutte le issue di github/copilot-sdk

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.