feat: add Claude Opus 4.7 model support#1556
Merged
Merged
Conversation
…opK) - Add noSamplingParams flag to FeatureFlags - Add CLAUDE_OPUS_4_7_DEFAULT_PARAMS without temperature - Add model entries for global/us.anthropic.claude-opus-4-7 - Strip temperature/topP from inferenceConfig for noSamplingParams models - Add prompt caching support for Opus 4.7
9396cbf to
798099b
Compare
maekawataiki
approved these changes
May 7, 2026
Collaborator
maekawataiki
left a comment
There was a problem hiding this comment.
Thank you for contribution! LGTM!
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
Claude Opus 4.7を各種ユースケースで利用可能とするための変更を実装
変更内容
1. モデルメタデータ追加 (
packages/common/src/application/model.ts)global/us/eu/jpの4リージョンバリアントを追加temperature/top_p/top_kパラメータを受け付けないため、新しいフラグnoSamplingParamsを導入し、専用のTEXT_DOC_IMAGE_ADAPTIVE_THINKING_NO_SAMPLINGフィーチャーセットを定義anthropic.claude-opus-4-7) を追加2. 型定義 (
packages/types/src/model.d.ts)FeatureFlagsにnoSamplingParams?: booleanを追加3. Lambda推論パラメータ (
packages/cdk/lambda/utils/models.ts)CLAUDE_OPUS_4_7_DEFAULT_PARAMS: temperatureを含まないデフォルトパラメータ(maxTokens: 128000のみ)noSamplingParamsフラグがtrueの場合、temperature: 1を送信しないnoSamplingParamsフラグがtrueの場合、inferenceConfigからmaxTokensのみを渡す4. ドキュメント (
docs/ja/DEPLOY_OPTION.md,docs/en/DEPLOY_OPTION.md)5. デフォルト設定 (
packages/cdk/cdk.json)modelIdsにglobal.anthropic.claude-opus-4-7を追加