Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#1,557 5 bình luận 4 reaction 1 người được giao Xem trên GitHub

@roji đang làm issue này rồi.

Từ ngày 3/6/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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();
Ngôn ngữ chính
Java
Star
10.5k
Fork
1.5k
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
130

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/copilot-sdk

Tất cả issue của github/copilot-sdk

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.