fix(catalog): include base Nova Lite/Micro/Pro IDs in Bedrock cache compat
AWS documents prompt caching for Nova Micro/Lite/Pro under their in-region model IDs as well; the allowlist covered only the us. geo profiles (Premier already had both forms). Regional/provisioned-throughput configs using base IDs now emit the documented default-5m checkpoints.
This commit is contained in:
@@ -52,8 +52,11 @@ function detectedBedrockCompat(modelId: string): ResolvedBedrockCompat {
|
||||
const id = modelId.toLowerCase();
|
||||
|
||||
if (
|
||||
id === "amazon.nova-lite-v1:0" ||
|
||||
id === "us.amazon.nova-lite-v1:0" ||
|
||||
id === "amazon.nova-micro-v1:0" ||
|
||||
id === "us.amazon.nova-micro-v1:0" ||
|
||||
id === "amazon.nova-pro-v1:0" ||
|
||||
id === "us.amazon.nova-pro-v1:0" ||
|
||||
id === "amazon.nova-premier-v1:0" ||
|
||||
id === "us.amazon.nova-premier-v1:0"
|
||||
|
||||
@@ -111,8 +111,14 @@ describe("Bedrock prompt-cache compat", () => {
|
||||
expect(getBundledModel<"bedrock-converse-stream">("amazon-bedrock", id)?.compat).toEqual(expected);
|
||||
}
|
||||
|
||||
// AWS documents these as Nova Premier's in-region model and US geo inference IDs.
|
||||
for (const id of ["amazon.nova-premier-v1:0", "us.amazon.nova-premier-v1:0"] as const) {
|
||||
// AWS documents both the in-region model IDs and the US geo inference IDs.
|
||||
for (const id of [
|
||||
"amazon.nova-lite-v1:0",
|
||||
"amazon.nova-micro-v1:0",
|
||||
"amazon.nova-pro-v1:0",
|
||||
"amazon.nova-premier-v1:0",
|
||||
"us.amazon.nova-premier-v1:0",
|
||||
] as const) {
|
||||
expect(buildModel(bedrockSpec({ id })).compat).toEqual(expected);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user