Skip to content

fix(aws): omit temperature for Claude Opus 4.7 - #7000

Open
mikemikimike wants to merge 3 commits into
livekit:mainfrom
mikemikimike:fix/bedrock-temperature
Open

fix(aws): omit temperature for Claude Opus 4.7#7000
mikemikimike wants to merge 3 commits into
livekit:mainfrom
mikemikimike:fix/bedrock-temperature

Conversation

@mikemikimike

Copy link
Copy Markdown
Contributor

Fixes #6581.\n\nAmazon Bedrock Claude Opus 4.7 rejects the standard emperature inference parameter, causing requests to fail with a ValidationException. This change detects the model ID (including inference profile ARNs) and omits emperature only for Claude Opus 4.7; all other Bedrock models retain the existing behavior.\n\nAdded offline unit coverage for direct model IDs, inference profile ARNs, and a compatible Claude model. Syntax checking and git diff --check pass. The repository's frozen dependency setup could not complete its network download, and the system pytest run was blocked during collection by a missing compatible LiveKit runtime dependency.

@mikemikimike
mikemikimike requested a review from a team as a code owner August 27, 2026 00:21
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@longcw

longcw commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

duplicates #6947

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bedrock rejects 'temperature' params on newer models

2 participants