@slopus/happy-providers 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VENDOR_ANTHROPIC_BEDROCK.md +8 -5
- package/dist/vendors/bedrock/impl/resolveAnthropicBedrockModelId.d.ts.map +1 -1
- package/dist/vendors/bedrock/impl/resolveAnthropicBedrockModelId.js +4 -1
- package/dist/vendors/bedrock/impl/resolveAnthropicBedrockModelId.js.map +1 -1
- package/dist/vendors/bedrock/impl/resolveBedrockModelId.d.ts.map +1 -1
- package/dist/vendors/bedrock/impl/resolveBedrockModelId.js +1 -0
- package/dist/vendors/bedrock/impl/resolveBedrockModelId.js.map +1 -1
- package/package.json +1 -1
|
@@ -38,16 +38,19 @@ inference-profile ID directly when intentionally using an unlisted model.
|
|
|
38
38
|
Rig's Bedrock executor owns an ordered model/transport/region table. The first matching transport
|
|
39
39
|
wins:
|
|
40
40
|
|
|
41
|
-
| Model
|
|
42
|
-
|
|
|
43
|
-
| Claude
|
|
44
|
-
| Claude
|
|
45
|
-
| Claude
|
|
41
|
+
| Model | Preferred Mantle regions | Runtime fallback |
|
|
42
|
+
| ---------------- | ------------------------------------------------------------------------- | -------------------------- |
|
|
43
|
+
| Claude Fable 5.1 | None documented; Runtime is the default | Commercial Bedrock regions |
|
|
44
|
+
| Claude Sonnet 5 | `eu-north-1`, `eu-west-1`, `us-east-1` | Commercial Bedrock regions |
|
|
45
|
+
| Claude Fable 5 | `us-east-1` | Commercial Bedrock regions |
|
|
46
|
+
| Claude Opus 4.8 | `ap-northeast-1`, `eu-north-1`, `eu-west-1`, `us-east-1`, `us-gov-west-1` | Commercial Bedrock regions |
|
|
46
47
|
|
|
47
48
|
These Mantle lists are the intersection of the AWS Mantle endpoint regions and each model's
|
|
48
49
|
documented in-region availability. Runtime remains the fallback because it supports geographic
|
|
49
50
|
and global inference profiles. A per-model `transport = "mantle"` or `transport = "runtime"`
|
|
50
51
|
override can force one supported surface; pairing it with `endpoint` supports a custom gateway.
|
|
52
|
+
Fable 5.1 defaults to Runtime because AWS documents US and global inference profiles but no
|
|
53
|
+
in-region Mantle route.
|
|
51
54
|
|
|
52
55
|
## Runtime ownership
|
|
53
56
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveAnthropicBedrockModelId.d.ts","sourceRoot":"","sources":["../../../../sources/vendors/bedrock/impl/resolveAnthropicBedrockModelId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AAEhG,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,SAAS,GAAE,yBAAqC,GACjD,MAAM,
|
|
1
|
+
{"version":3,"file":"resolveAnthropicBedrockModelId.d.ts","sourceRoot":"","sources":["../../../../sources/vendors/bedrock/impl/resolveAnthropicBedrockModelId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AAEhG,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,SAAS,GAAE,yBAAqC,GACjD,MAAM,CAoCR"}
|
|
@@ -3,11 +3,14 @@ export function resolveAnthropicBedrockModelId(model, region, transport = "runti
|
|
|
3
3
|
return model;
|
|
4
4
|
const modelName = model.slice("anthropic/".length);
|
|
5
5
|
const base = `anthropic.claude-${modelName}`;
|
|
6
|
-
if (!["fable-5", "opus-5", "opus-4-8", "sonnet-5"].includes(modelName)) {
|
|
6
|
+
if (!["fable-5-1", "fable-5", "opus-5", "opus-4-8", "sonnet-5"].includes(modelName)) {
|
|
7
7
|
throw new Error(`Anthropic model "${model}" is not available through Rig's Bedrock catalog. Pass a Bedrock model or inference-profile ID directly to use an unlisted model.`);
|
|
8
8
|
}
|
|
9
9
|
if (transport === "mantle")
|
|
10
10
|
return base;
|
|
11
|
+
if (modelName === "fable-5-1") {
|
|
12
|
+
return region.startsWith("us-") ? `us.${base}` : `global.${base}`;
|
|
13
|
+
}
|
|
11
14
|
if (modelName === "opus-5" || modelName === "opus-4-8") {
|
|
12
15
|
if (region === "ap-northeast-1" || region === "ap-northeast-3") {
|
|
13
16
|
return `jp.${base}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveAnthropicBedrockModelId.js","sourceRoot":"","sources":["../../../../sources/vendors/bedrock/impl/resolveAnthropicBedrockModelId.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,8BAA8B,CAC1C,KAAa,EACb,MAAc,EACd,SAAS,GAA8B,SAAS;IAEhD,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC;QAAE,OAAO,KAAK,CAAC;IAClD,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACnD,MAAM,IAAI,GAAG,oBAAoB,SAAS,EAAE,CAAC;IAC7C,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"resolveAnthropicBedrockModelId.js","sourceRoot":"","sources":["../../../../sources/vendors/bedrock/impl/resolveAnthropicBedrockModelId.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,8BAA8B,CAC1C,KAAa,EACb,MAAc,EACd,SAAS,GAA8B,SAAS;IAEhD,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC;QAAE,OAAO,KAAK,CAAC;IAClD,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACnD,MAAM,IAAI,GAAG,oBAAoB,SAAS,EAAE,CAAC;IAC7C,IAAI,CAAC,CAAC,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,QAAQ,CAA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QACD,IAAI,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC;YAAE,OAAO,MAAM,IAAI,EAAE,CAAC;QAClD,IAAI,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC;YAAE,OAAO,MAAM,IAAI,EAAE,CAAC;QAClD,OAAO,UAAU,IAAI,EAAE,CAAC;IAC5B,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveBedrockModelId.d.ts","sourceRoot":"","sources":["../../../../sources/vendors/bedrock/impl/resolveBedrockModelId.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolveBedrockModelId.d.ts","sourceRoot":"","sources":["../../../../sources/vendors/bedrock/impl/resolveBedrockModelId.ts"],"names":[],"mappings":"AAYA,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveBedrockModelId.js","sourceRoot":"","sources":["../../../../sources/vendors/bedrock/impl/resolveBedrockModelId.ts"],"names":[],"mappings":"AAAA,MAAM,iBAAiB,GAAqC;IACxD,mBAAmB,EAAE,0BAA0B;IAC/C,kBAAkB,EAAE,yBAAyB;IAC7C,oBAAoB,EAAE,2BAA2B;IACjD,oBAAoB,EAAE,2BAA2B;IACjD,gBAAgB,EAAE,gBAAgB;IAClC,qBAAqB,EAAE,qBAAqB;IAC5C,oBAAoB,EAAE,oBAAoB;IAC1C,sBAAsB,EAAE,sBAAsB;CACjD,CAAC;AAEF,MAAM,UAAU,qBAAqB,CAAC,OAAe;IACjD,OAAO,iBAAiB,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC;AACjD,CAAC"}
|
|
1
|
+
{"version":3,"file":"resolveBedrockModelId.js","sourceRoot":"","sources":["../../../../sources/vendors/bedrock/impl/resolveBedrockModelId.ts"],"names":[],"mappings":"AAAA,MAAM,iBAAiB,GAAqC;IACxD,qBAAqB,EAAE,4BAA4B;IACnD,mBAAmB,EAAE,0BAA0B;IAC/C,kBAAkB,EAAE,yBAAyB;IAC7C,oBAAoB,EAAE,2BAA2B;IACjD,oBAAoB,EAAE,2BAA2B;IACjD,gBAAgB,EAAE,gBAAgB;IAClC,qBAAqB,EAAE,qBAAqB;IAC5C,oBAAoB,EAAE,oBAAoB;IAC1C,sBAAsB,EAAE,sBAAsB;CACjD,CAAC;AAEF,MAAM,UAAU,qBAAqB,CAAC,OAAe;IACjD,OAAO,iBAAiB,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC;AACjD,CAAC"}
|