mirror of
https://github.com/aws/agent-toolkit-for-aws.git
synced 2026-11-24 20:07:09 +08:00
fix(aws-startup-advisor): scope the in. CRIS prefix and runtime feature constraints per model for GPT-5.4/5.5
The GPT-5.4 and GPT-5.5 model cards publish only us. and global. CRIS ids;
the in. profile exists for GPT-5.6 only. The runtime_converse path strength
and both schema-design vocabulary/checklist lines attached us./in./global.
to all three models, contradicting the catalog's own next constraint and
openai-on-bedrock.md. Rewritten so in. stays on GPT-5.6 / GPT-6.
The GPT-5.6 runtime constraint ("does not support server-side tool use,
structured outputs, or application inference profiles") is now scoped to
GPT-5.6, and a separate GPT-5.4/5.5 constraint records what their cards
mark: server-side tools unsupported; structured outputs and implicit prompt
caching Responses-only; Guardrails and application inference profiles
Converse-only.
Vendored copies re-synced (62 checked, 3 synced). Regression test added.
This commit is contained in:
+3
-2
@@ -51,11 +51,12 @@
|
||||
"strengths": [
|
||||
"Bedrock-native multi-model request surface",
|
||||
"Supports Bedrock Guardrails (Converse API only), invocation logging, and CloudWatch",
|
||||
"For GPT-5.6, GPT-5.5 and GPT-5.4 this is a SAME-MODEL governance path via CRIS (us./in./global. ids; base URL bedrock-runtime.{region}.amazonaws.com/openai/v1 for the OpenAI-compatible APIs); the model cards recommend runtime for new applications, and for GPT-5.6 Global CRIS is priced at OpenAI's standard rate (cost parity)"
|
||||
"For GPT-5.6 this is a SAME-MODEL governance path via CRIS (us./in./global. ids). For GPT-5.5 and GPT-5.4 the runtime ids are us. and global. only (their model cards publish no in. profile). The base URL for the OpenAI-compatible APIs is bedrock-runtime.{region}.amazonaws.com/openai/v1. The model cards recommend runtime for new applications, and for GPT-5.6 Global CRIS is priced at OpenAI's standard rate (cost parity)"
|
||||
],
|
||||
"constraints": [
|
||||
"GPT-5.5 / GPT-5.4 on runtime are CRIS-only (us. and global. ids; no in-region form) per their model cards (read 2026-11-06); the cards publish In-Region (1.10x) pricing only, so do not assume Global CRIS price parity for them",
|
||||
"GPT-5.6 on runtime is CRIS-only (no in-region form); Geo CRIS stays within the geography, Global CRIS routes anywhere — pick by data-residency posture. Runtime does not support server-side tool use, structured outputs, or application inference profiles for these models; prompt caching is Responses-only",
|
||||
"GPT-5.6 on runtime is CRIS-only (no in-region form); Geo CRIS stays within the geography, Global CRIS routes anywhere — pick by data-residency posture. For GPT-5.6, runtime does not support server-side tool use, structured outputs, or application inference profiles; prompt caching is Responses-only",
|
||||
"GPT-5.5 / GPT-5.4 on runtime (per their model cards, read 2026-11-07): server-side tool use is unsupported; structured outputs and implicit prompt caching are Responses-only; Guardrails and application inference profiles are Converse-only",
|
||||
"Bedrock-native models generally require a Global or geography-scoped CRIS inference profile",
|
||||
"Availability must be probed in the target account and region"
|
||||
]
|
||||
|
||||
+18
@@ -116,6 +116,24 @@ def test_catalog_gpt54_gpt55_record_public_runtime_and_chat_facts(catalog_key, m
|
||||
assert "internal reference" not in model["capability_source"]
|
||||
|
||||
|
||||
def test_runtime_converse_path_text_does_not_grant_in_profile_to_gpt54_gpt55():
|
||||
# The GPT-5.4 / GPT-5.5 cards publish only us. and global. CRIS ids; only
|
||||
# GPT-5.6 has an in. profile. The shared runtime_converse path text must not
|
||||
# attach the in. prefix to the 5.4/5.5 models, and its feature constraints
|
||||
# must be stated per model (5.4/5.5 cards list structured outputs on Responses
|
||||
# and application inference profiles on Converse, which the GPT-5.6 sentence
|
||||
# denies).
|
||||
path = OPENAI_CATALOG["paths"]["runtime_converse"]
|
||||
strengths = "\n".join(path["strengths"])
|
||||
constraints = "\n".join(path["constraints"])
|
||||
assert "For GPT-5.6, GPT-5.5 and GPT-5.4" not in strengths
|
||||
assert "GPT-5.5 and GPT-5.4 the runtime ids are us. and global. only" in strengths
|
||||
assert "For GPT-5.6, runtime does not support server-side tool use" in constraints
|
||||
assert "GPT-5.5 / GPT-5.4 on runtime" in constraints
|
||||
assert "structured outputs and implicit prompt caching are Responses-only" in constraints
|
||||
assert "Guardrails and application inference profiles are Converse-only" in constraints
|
||||
|
||||
|
||||
def test_chat_completions_case_includes_full_reshape_deltas():
|
||||
rec = _recommend(
|
||||
_workload(
|
||||
|
||||
+4
-3
@@ -127,8 +127,8 @@ Traditional-AI capabilities (AWS AI service, not Bedrock): `document_extraction`
|
||||
lists it there (GPT-6, GPT-5.5, GPT-5.4).
|
||||
`mantle_openai_responses` (Azure OpenAI / OpenAI source, model on Bedrock, region carries it —
|
||||
keep the SDK, `model_change: false`) · `runtime_openai_cris` (GPT-6 / GPT-5.6 / GPT-5.5 / GPT-5.4
|
||||
same-model move served via `bedrock-runtime` CRIS, `us.`/`in.`/`global.` prefixed,
|
||||
`model_change: false`) · `converse` (Bedrock-native Converse/`bedrock-runtime`; set
|
||||
same-model move served via `bedrock-runtime` CRIS — `us.`/`in.`/`global.` prefixed for GPT-6 /
|
||||
GPT-5.6, `us.`/`global.` only for GPT-5.5 / GPT-5.4 — `model_change: false`) · `converse` (Bedrock-native Converse/`bedrock-runtime`; set
|
||||
`model_change: true` when the workload needs Knowledge Bases, intelligent prompt routing, or
|
||||
another feature the same-model CRIS path itself cannot serve) · `gpt-oss` (OpenAI-lineage model
|
||||
on the Bedrock-native runtime) · `direct` (framework-agnostic Bedrock SDK swap). A **bare**
|
||||
@@ -207,7 +207,8 @@ rubric file (`ai.md`, `ai-azure-openai-to-bedrock.md`, or a `vendored/ai/*` ref)
|
||||
- [ ] No `bedrock_models[]` entry pairs a **bare** proprietary GPT id (including bare
|
||||
`openai.gpt-5.5` / `openai.gpt-5.4`) with a `converse`/`bedrock-runtime` migration path.
|
||||
GPT-5.6, GPT-6, GPT-5.5 and GPT-5.4 MAY use `migration_path: "runtime_openai_cris"` on
|
||||
`bedrock-runtime` with a `us.`/`in.`/`global.` CRIS id — this is NOT a violation.
|
||||
`bedrock-runtime` with a CRIS id (`us.`/`in.`/`global.` for GPT-6 / GPT-5.6, `us.`/`global.`
|
||||
only for GPT-5.5 / GPT-5.4) — this is NOT a violation.
|
||||
- [ ] If `ai_source` is `azure_openai` or `openai`: every source model that is available on
|
||||
Bedrock and carried by the target region maps to ITSELF with `model_change: false` — not
|
||||
to a Claude/Nova substitute.
|
||||
|
||||
+4
-3
@@ -193,8 +193,8 @@ Traditional-AI capabilities (AWS AI service, not Bedrock): `document_extraction`
|
||||
on Bedrock and the region carrying it: keep the SDK, `model_change: false`) · `mantle_openai_chat`
|
||||
(same, preserving a Chat Completions source on a model whose card lists Chat Completions on
|
||||
mantle — GPT-6, GPT-5.5, GPT-5.4) · `runtime_openai_cris` (same-model move served via
|
||||
`bedrock-runtime` with a `us.`/`in.`/`global.` CRIS id, `model_change: false`; available for
|
||||
GPT-6, GPT-5.6, GPT-5.5 and GPT-5.4 per their model cards) · `converse` (Bedrock-native
|
||||
`bedrock-runtime` with a CRIS id, `model_change: false`; `us.`/`in.`/`global.` for GPT-6 and
|
||||
GPT-5.6, `us.`/`global.` only for GPT-5.5 and GPT-5.4, per their model cards) · `converse` (Bedrock-native
|
||||
Converse/`bedrock-runtime`; set `model_change: true` when the workload needs Knowledge Bases,
|
||||
intelligent prompt routing, or another feature no same-model path serves) · `gpt-oss`
|
||||
(OpenAI-lineage model on the Bedrock-native runtime) · `direct` (framework-agnostic Bedrock SDK
|
||||
@@ -263,7 +263,8 @@ rubric file (`ai.md`, a provider-to-Bedrock mapping guide, or a `vendored/ai/*`
|
||||
`recommend_stay`, `honest_assessment_reason` names a non-cost blocker.
|
||||
- [ ] No `bedrock_models[]` entry pairs a **bare** proprietary `openai.gpt-*` model ID with a
|
||||
`converse`/`bedrock-runtime` migration path (bare ids are mantle ids; a `bedrock-runtime`
|
||||
target for GPT-6 / GPT-5.6 / GPT-5.5 / GPT-5.4 carries a `us.`/`in.`/`global.` CRIS id).
|
||||
target carries a CRIS id: `us.`/`in.`/`global.` for GPT-6 / GPT-5.6, `us.`/`global.` only for
|
||||
GPT-5.5 / GPT-5.4).
|
||||
- [ ] For a retained source whose `source_service` is `azure_openai`, or whose provider resolves
|
||||
to direct OpenAI: every source model that is available on Bedrock and carried by the
|
||||
target region maps to ITSELF with `model_change: false` — not to a Claude/Nova substitute.
|
||||
|
||||
+4
-3
@@ -193,8 +193,8 @@ Traditional-AI capabilities (AWS AI service, not Bedrock): `document_extraction`
|
||||
on Bedrock and the region carrying it: keep the SDK, `model_change: false`) · `mantle_openai_chat`
|
||||
(same, preserving a Chat Completions source on a model whose card lists Chat Completions on
|
||||
mantle — GPT-6, GPT-5.5, GPT-5.4) · `runtime_openai_cris` (same-model move served via
|
||||
`bedrock-runtime` with a `us.`/`in.`/`global.` CRIS id, `model_change: false`; available for
|
||||
GPT-6, GPT-5.6, GPT-5.5 and GPT-5.4 per their model cards) · `converse` (Bedrock-native
|
||||
`bedrock-runtime` with a CRIS id, `model_change: false`; `us.`/`in.`/`global.` for GPT-6 and
|
||||
GPT-5.6, `us.`/`global.` only for GPT-5.5 and GPT-5.4, per their model cards) · `converse` (Bedrock-native
|
||||
Converse/`bedrock-runtime`; set `model_change: true` when the workload needs Knowledge Bases,
|
||||
intelligent prompt routing, or another feature no same-model path serves) · `gpt-oss`
|
||||
(OpenAI-lineage model on the Bedrock-native runtime) · `direct` (framework-agnostic Bedrock SDK
|
||||
@@ -263,7 +263,8 @@ rubric file (`ai.md`, a provider-to-Bedrock mapping guide, or a `vendored/ai/*`
|
||||
`recommend_stay`, `honest_assessment_reason` names a non-cost blocker.
|
||||
- [ ] No `bedrock_models[]` entry pairs a **bare** proprietary `openai.gpt-*` model ID with a
|
||||
`converse`/`bedrock-runtime` migration path (bare ids are mantle ids; a `bedrock-runtime`
|
||||
target for GPT-6 / GPT-5.6 / GPT-5.5 / GPT-5.4 carries a `us.`/`in.`/`global.` CRIS id).
|
||||
target carries a CRIS id: `us.`/`in.`/`global.` for GPT-6 / GPT-5.6, `us.`/`global.` only for
|
||||
GPT-5.5 / GPT-5.4).
|
||||
- [ ] For a retained source whose `source_service` is `azure_openai`, or whose provider resolves
|
||||
to direct OpenAI: every source model that is available on Bedrock and carried by the
|
||||
target region maps to ITSELF with `model_change: false` — not to a Claude/Nova substitute.
|
||||
|
||||
@@ -51,11 +51,12 @@
|
||||
"strengths": [
|
||||
"Bedrock-native multi-model request surface",
|
||||
"Supports Bedrock Guardrails (Converse API only), invocation logging, and CloudWatch",
|
||||
"For GPT-5.6, GPT-5.5 and GPT-5.4 this is a SAME-MODEL governance path via CRIS (us./in./global. ids; base URL bedrock-runtime.{region}.amazonaws.com/openai/v1 for the OpenAI-compatible APIs); the model cards recommend runtime for new applications, and for GPT-5.6 Global CRIS is priced at OpenAI's standard rate (cost parity)"
|
||||
"For GPT-5.6 this is a SAME-MODEL governance path via CRIS (us./in./global. ids). For GPT-5.5 and GPT-5.4 the runtime ids are us. and global. only (their model cards publish no in. profile). The base URL for the OpenAI-compatible APIs is bedrock-runtime.{region}.amazonaws.com/openai/v1. The model cards recommend runtime for new applications, and for GPT-5.6 Global CRIS is priced at OpenAI's standard rate (cost parity)"
|
||||
],
|
||||
"constraints": [
|
||||
"GPT-5.5 / GPT-5.4 on runtime are CRIS-only (us. and global. ids; no in-region form) per their model cards (read 2026-11-06); the cards publish In-Region (1.10x) pricing only, so do not assume Global CRIS price parity for them",
|
||||
"GPT-5.6 on runtime is CRIS-only (no in-region form); Geo CRIS stays within the geography, Global CRIS routes anywhere — pick by data-residency posture. Runtime does not support server-side tool use, structured outputs, or application inference profiles for these models; prompt caching is Responses-only",
|
||||
"GPT-5.6 on runtime is CRIS-only (no in-region form); Geo CRIS stays within the geography, Global CRIS routes anywhere — pick by data-residency posture. For GPT-5.6, runtime does not support server-side tool use, structured outputs, or application inference profiles; prompt caching is Responses-only",
|
||||
"GPT-5.5 / GPT-5.4 on runtime (per their model cards, read 2026-11-07): server-side tool use is unsupported; structured outputs and implicit prompt caching are Responses-only; Guardrails and application inference profiles are Converse-only",
|
||||
"Bedrock-native models generally require a Global or geography-scoped CRIS inference profile",
|
||||
"Availability must be probed in the target account and region"
|
||||
]
|
||||
|
||||
@@ -193,8 +193,8 @@ Traditional-AI capabilities (AWS AI service, not Bedrock): `document_extraction`
|
||||
on Bedrock and the region carrying it: keep the SDK, `model_change: false`) · `mantle_openai_chat`
|
||||
(same, preserving a Chat Completions source on a model whose card lists Chat Completions on
|
||||
mantle — GPT-6, GPT-5.5, GPT-5.4) · `runtime_openai_cris` (same-model move served via
|
||||
`bedrock-runtime` with a `us.`/`in.`/`global.` CRIS id, `model_change: false`; available for
|
||||
GPT-6, GPT-5.6, GPT-5.5 and GPT-5.4 per their model cards) · `converse` (Bedrock-native
|
||||
`bedrock-runtime` with a CRIS id, `model_change: false`; `us.`/`in.`/`global.` for GPT-6 and
|
||||
GPT-5.6, `us.`/`global.` only for GPT-5.5 and GPT-5.4, per their model cards) · `converse` (Bedrock-native
|
||||
Converse/`bedrock-runtime`; set `model_change: true` when the workload needs Knowledge Bases,
|
||||
intelligent prompt routing, or another feature no same-model path serves) · `gpt-oss`
|
||||
(OpenAI-lineage model on the Bedrock-native runtime) · `direct` (framework-agnostic Bedrock SDK
|
||||
@@ -263,7 +263,8 @@ rubric file (`ai.md`, a provider-to-Bedrock mapping guide, or a `vendored/ai/*`
|
||||
`recommend_stay`, `honest_assessment_reason` names a non-cost blocker.
|
||||
- [ ] No `bedrock_models[]` entry pairs a **bare** proprietary `openai.gpt-*` model ID with a
|
||||
`converse`/`bedrock-runtime` migration path (bare ids are mantle ids; a `bedrock-runtime`
|
||||
target for GPT-6 / GPT-5.6 / GPT-5.5 / GPT-5.4 carries a `us.`/`in.`/`global.` CRIS id).
|
||||
target carries a CRIS id: `us.`/`in.`/`global.` for GPT-6 / GPT-5.6, `us.`/`global.` only for
|
||||
GPT-5.5 / GPT-5.4).
|
||||
- [ ] For a retained source whose `source_service` is `azure_openai`, or whose provider resolves
|
||||
to direct OpenAI: every source model that is available on Bedrock and carried by the
|
||||
target region maps to ITSELF with `model_change: false` — not to a Claude/Nova substitute.
|
||||
|
||||
Reference in New Issue
Block a user