@oh-my-pi/pi-catalog 17.2.8 → 17.2.10
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/CHANGELOG.md +16 -0
- package/dist/types/identity/family.d.ts +7 -0
- package/package.json +4 -5
- package/src/discovery/gitlab-duo-workflow.ts +32 -28
- package/src/identity/family.ts +10 -0
- package/src/model-thinking.ts +10 -9
- package/src/models.json +325 -1
- package/src/provider-models/openai-compat.ts +13 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [17.2.10] - 2026-08-06
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Removed the zod dependency by migrating GitLab Duo Workflow discovery schemas to omptype.
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Corrected thinking-effort tiers for deepseek-v4-flash to include the low tier alongside high and max.
|
|
14
|
+
|
|
15
|
+
## [17.2.9] - 2026-08-05
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Fixed Amazon Bedrock catalog generation omitting AWS GovCloud `us-gov.*` Claude inference-profile IDs, so selectors like `amazon-bedrock/us-gov.anthropic.claude-sonnet-4-5-…` resolve instead of failing model lookup (or misrouting commercial `us.*` geos onto `us-east-1` with GovCloud credentials).
|
|
20
|
+
|
|
5
21
|
## [17.2.7] - 2026-08-03
|
|
6
22
|
|
|
7
23
|
### Fixed
|
|
@@ -34,6 +34,13 @@ export declare const isQwenModelId: (modelId: string) => boolean;
|
|
|
34
34
|
export declare const isGemmaModelId: (modelId: string) => boolean;
|
|
35
35
|
/** DeepSeek family by id or display name (proxies often rename the id but keep the name). */
|
|
36
36
|
export declare const isDeepseekModelIdOrName: (modelId: string) => boolean;
|
|
37
|
+
/**
|
|
38
|
+
* DeepSeek V4 Flash SKU in any host/namespace form (`deepseek-v4-flash`, dated
|
|
39
|
+
* `deepseek-v4-flash-0731`, `deepseek-ai/DeepSeek-V4-Flash`). Flash is the only
|
|
40
|
+
* V4 model whose `reasoning_effort` accepts the `low` tier; V4 Pro tops out at
|
|
41
|
+
* `high`/`max`. See https://api-docs.deepseek.com/api/create-chat-completion.
|
|
42
|
+
*/
|
|
43
|
+
export declare const isDeepseekV4FlashModelId: (modelId: string) => boolean;
|
|
37
44
|
/** Xiaomi MiMo family by id or display name. */
|
|
38
45
|
export declare const isMimoModelIdOrName: (modelId: string) => boolean;
|
|
39
46
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@oh-my-pi/pi-catalog",
|
|
4
|
-
"version": "17.2.
|
|
4
|
+
"version": "17.2.10",
|
|
5
5
|
"description": "Model catalog for omp: bundled model database, provider discovery descriptors, model identity, classification, and equivalence",
|
|
6
6
|
"homepage": "https://omp.sh",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -35,12 +35,11 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@bufbuild/protobuf": "^2.12.1",
|
|
38
|
-
"@oh-my-pi/omptype": "17.2.
|
|
39
|
-
"@oh-my-pi/pi-utils": "17.2.
|
|
40
|
-
"zod": "^4"
|
|
38
|
+
"@oh-my-pi/omptype": "17.2.10",
|
|
39
|
+
"@oh-my-pi/pi-utils": "17.2.10"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|
|
43
|
-
"@oh-my-pi/pi-ai": "17.2.
|
|
42
|
+
"@oh-my-pi/pi-ai": "17.2.10",
|
|
44
43
|
"@types/bun": "^1.3.14"
|
|
45
44
|
},
|
|
46
45
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as fs from "node:fs/promises";
|
|
2
2
|
import * as path from "node:path";
|
|
3
|
-
import {
|
|
3
|
+
import { type } from "@oh-my-pi/omptype";
|
|
4
4
|
import type { FetchImpl, ModelSpec } from "../types";
|
|
5
5
|
import { discoveryFetch, isRecord } from "../utils";
|
|
6
6
|
|
|
@@ -54,20 +54,28 @@ const ProjectRootNamespaceQuery = `query omp_gitlabDuoWorkflowProjectRootNamespa
|
|
|
54
54
|
}
|
|
55
55
|
}`;
|
|
56
56
|
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
57
|
+
const resilientString = type("unknown").pipe(value => {
|
|
58
|
+
if (value === undefined) return undefined;
|
|
59
|
+
const parsed = type("string")(value);
|
|
60
|
+
return parsed instanceof type.errors ? undefined : parsed;
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
const resilientUnknownArray = type("unknown").pipe(value => {
|
|
64
|
+
if (value === undefined || value === null) return value;
|
|
65
|
+
const parsed = type("unknown[]")(value);
|
|
66
|
+
return parsed instanceof type.errors ? [] : parsed;
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
const modelRefSchema = type({
|
|
70
|
+
"name?": resilientString,
|
|
71
|
+
"ref?": resilientString,
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
const aiChatAvailableModelsSchema = type({
|
|
75
|
+
"defaultModel?": "unknown",
|
|
76
|
+
"selectableModels?": resilientUnknownArray,
|
|
77
|
+
"pinnedModel?": "unknown",
|
|
78
|
+
});
|
|
71
79
|
|
|
72
80
|
type GitLabDuoWorkflowCandidateSource = "override" | "project" | "remote" | "group";
|
|
73
81
|
|
|
@@ -540,17 +548,15 @@ async function postGraphQL(
|
|
|
540
548
|
}
|
|
541
549
|
|
|
542
550
|
function parseAvailability(value: unknown): GitLabDuoWorkflowAvailability | null {
|
|
543
|
-
const parsed = aiChatAvailableModelsSchema
|
|
544
|
-
if (
|
|
545
|
-
return null;
|
|
546
|
-
}
|
|
551
|
+
const parsed = aiChatAvailableModelsSchema(value);
|
|
552
|
+
if (parsed instanceof type.errors) return null;
|
|
547
553
|
return {
|
|
548
|
-
defaultModel: parseModelRef(parsed.
|
|
549
|
-
selectableModels: (parsed.
|
|
554
|
+
defaultModel: parseModelRef(parsed.defaultModel),
|
|
555
|
+
selectableModels: (parsed.selectableModels ?? []).flatMap(model => {
|
|
550
556
|
const parsedModel = parseModelRef(model);
|
|
551
557
|
return parsedModel ? [parsedModel] : [];
|
|
552
558
|
}),
|
|
553
|
-
pinnedModel: parseModelRef(parsed.
|
|
559
|
+
pinnedModel: parseModelRef(parsed.pinnedModel),
|
|
554
560
|
};
|
|
555
561
|
}
|
|
556
562
|
|
|
@@ -558,15 +564,13 @@ function parseModelRef(value: unknown): GitLabDuoWorkflowModelRef | null {
|
|
|
558
564
|
if (value === null || value === undefined) {
|
|
559
565
|
return null;
|
|
560
566
|
}
|
|
561
|
-
const parsed = modelRefSchema
|
|
562
|
-
if (
|
|
563
|
-
|
|
564
|
-
}
|
|
565
|
-
const ref = normalizeIdentifier(parsed.data.ref);
|
|
567
|
+
const parsed = modelRefSchema(value);
|
|
568
|
+
if (parsed instanceof type.errors) return null;
|
|
569
|
+
const ref = normalizeIdentifier(parsed.ref);
|
|
566
570
|
if (!ref) {
|
|
567
571
|
return null;
|
|
568
572
|
}
|
|
569
|
-
const name = normalizeIdentifier(parsed.
|
|
573
|
+
const name = normalizeIdentifier(parsed.name) ?? ref;
|
|
570
574
|
return { name, ref };
|
|
571
575
|
}
|
|
572
576
|
|
package/src/identity/family.ts
CHANGED
|
@@ -83,6 +83,16 @@ export const isDeepseekModelIdOrName = memo((value: string): boolean => {
|
|
|
83
83
|
return value.toLowerCase().includes("deepseek");
|
|
84
84
|
});
|
|
85
85
|
|
|
86
|
+
/**
|
|
87
|
+
* DeepSeek V4 Flash SKU in any host/namespace form (`deepseek-v4-flash`, dated
|
|
88
|
+
* `deepseek-v4-flash-0731`, `deepseek-ai/DeepSeek-V4-Flash`). Flash is the only
|
|
89
|
+
* V4 model whose `reasoning_effort` accepts the `low` tier; V4 Pro tops out at
|
|
90
|
+
* `high`/`max`. See https://api-docs.deepseek.com/api/create-chat-completion.
|
|
91
|
+
*/
|
|
92
|
+
export const isDeepseekV4FlashModelId = memo((modelId: string): boolean => {
|
|
93
|
+
return bareModelId(modelId).toLowerCase().includes("deepseek-v4-flash");
|
|
94
|
+
});
|
|
95
|
+
|
|
86
96
|
/** Xiaomi MiMo family by id or display name. */
|
|
87
97
|
export const isMimoModelIdOrName = memo((value: string): boolean => {
|
|
88
98
|
return value.toLowerCase().includes("mimo");
|
package/src/model-thinking.ts
CHANGED
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
findThinkingVariantToken,
|
|
26
26
|
isDeepseekModelIdOrName,
|
|
27
|
+
isDeepseekV4FlashModelId,
|
|
27
28
|
isGlm52ReasoningEffortModelId,
|
|
28
29
|
isKimiK3ModelId,
|
|
29
30
|
isMimoModelIdOrName,
|
|
@@ -62,9 +63,9 @@ const GEMINI_3_FLASH_EFFORTS: readonly Effort[] = [Effort.Minimal, Effort.Low, E
|
|
|
62
63
|
const GPT_5_2_PLUS_EFFORTS: readonly Effort[] = [Effort.Low, Effort.Medium, Effort.High, Effort.XHigh];
|
|
63
64
|
const GPT_5_1_CODEX_MINI_EFFORTS: readonly Effort[] = [Effort.Medium, Effort.High];
|
|
64
65
|
const LOW_MEDIUM_HIGH_REASONING_EFFORTS: readonly Effort[] = [Effort.Low, Effort.Medium, Effort.High];
|
|
65
|
-
/** Wire-exact `low`/`high`/`max` scale used by Kimi K3 and
|
|
66
|
+
/** Wire-exact `low`/`high`/`max` scale used by Kimi K3 and DeepSeek V4 Flash (direct API and aggregators). */
|
|
66
67
|
const LOW_HIGH_MAX_REASONING_EFFORTS: readonly Effort[] = [Effort.Low, Effort.High, Effort.Max];
|
|
67
|
-
/** Wire-exact two-tier scale (`high`/`max`): GLM-5.2 on Z.ai/Umans/Ollama Cloud/Baseten, Sakana Fugu, DeepSeek. */
|
|
68
|
+
/** Wire-exact two-tier scale (`high`/`max`): GLM-5.2 on Z.ai/Umans/Ollama Cloud/Baseten, Sakana Fugu, DeepSeek V4 Pro. */
|
|
68
69
|
const HIGH_MAX_REASONING_EFFORTS: readonly Effort[] = [Effort.High, Effort.Max];
|
|
69
70
|
/** OpenRouter's DeepSeek route accepts only `high`. */
|
|
70
71
|
const HIGH_ONLY_REASONING_EFFORTS: readonly Effort[] = [Effort.High];
|
|
@@ -366,14 +367,14 @@ function getModelDefinedEfforts<TApi extends Api>(
|
|
|
366
367
|
return OLLAMA_REASONING_EFFORTS;
|
|
367
368
|
}
|
|
368
369
|
if (isOpenAICompatReasoningApi(spec.api) && isDeepseekReasoningModel(spec)) {
|
|
369
|
-
//
|
|
370
|
-
//
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
370
|
+
// DeepSeek V4 Flash accepts the wire-exact low/high/max ladder on every
|
|
371
|
+
// host — the direct API and aggregators alike (medium/xhigh map to
|
|
372
|
+
// high). V4 Pro and the older reasoners top out at high/max, and
|
|
373
|
+
// OpenRouter's non-flash DeepSeek route exposes only high.
|
|
374
|
+
if (isDeepseekV4FlashModelId(spec.id)) {
|
|
375
|
+
return LOW_HIGH_MAX_REASONING_EFFORTS;
|
|
375
376
|
}
|
|
376
|
-
return HIGH_MAX_REASONING_EFFORTS;
|
|
377
|
+
return isOpenRouterThinkingFormat(compat) ? HIGH_ONLY_REASONING_EFFORTS : HIGH_MAX_REASONING_EFFORTS;
|
|
377
378
|
}
|
|
378
379
|
if (spec.provider === "baseten" && isOpenAIGptOssModelId(spec.id)) {
|
|
379
380
|
// Baseten's gpt-oss router mirrors its GLM route: high/max only.
|
package/src/models.json
CHANGED
|
@@ -10488,6 +10488,330 @@
|
|
|
10488
10488
|
"contextWindow": 262000,
|
|
10489
10489
|
"maxTokens": 262000
|
|
10490
10490
|
},
|
|
10491
|
+
"us-gov.anthropic.claude-fable-5": {
|
|
10492
|
+
"id": "us-gov.anthropic.claude-fable-5",
|
|
10493
|
+
"name": "Claude Fable 5 (GovCloud)",
|
|
10494
|
+
"api": "bedrock-converse-stream",
|
|
10495
|
+
"provider": "amazon-bedrock",
|
|
10496
|
+
"baseUrl": "https://bedrock-runtime.us-east-1.amazonaws.com",
|
|
10497
|
+
"reasoning": true,
|
|
10498
|
+
"input": [
|
|
10499
|
+
"text",
|
|
10500
|
+
"image"
|
|
10501
|
+
],
|
|
10502
|
+
"cost": {
|
|
10503
|
+
"input": 10,
|
|
10504
|
+
"output": 50,
|
|
10505
|
+
"cacheRead": 1,
|
|
10506
|
+
"cacheWrite": 12.5
|
|
10507
|
+
},
|
|
10508
|
+
"contextWindow": 1000000,
|
|
10509
|
+
"maxTokens": 128000,
|
|
10510
|
+
"thinking": {
|
|
10511
|
+
"mode": "anthropic-adaptive",
|
|
10512
|
+
"efforts": [
|
|
10513
|
+
"low",
|
|
10514
|
+
"medium",
|
|
10515
|
+
"high",
|
|
10516
|
+
"max"
|
|
10517
|
+
],
|
|
10518
|
+
"supportsDisplay": true
|
|
10519
|
+
}
|
|
10520
|
+
},
|
|
10521
|
+
"us-gov.anthropic.claude-haiku-4-5-20251001-v1:0": {
|
|
10522
|
+
"id": "us-gov.anthropic.claude-haiku-4-5-20251001-v1:0",
|
|
10523
|
+
"name": "Claude Haiku 4.5 (GovCloud)",
|
|
10524
|
+
"api": "bedrock-converse-stream",
|
|
10525
|
+
"provider": "amazon-bedrock",
|
|
10526
|
+
"baseUrl": "https://bedrock-runtime.us-east-1.amazonaws.com",
|
|
10527
|
+
"reasoning": true,
|
|
10528
|
+
"input": [
|
|
10529
|
+
"text",
|
|
10530
|
+
"image"
|
|
10531
|
+
],
|
|
10532
|
+
"cost": {
|
|
10533
|
+
"input": 1,
|
|
10534
|
+
"output": 5,
|
|
10535
|
+
"cacheRead": 0.1,
|
|
10536
|
+
"cacheWrite": 1.25
|
|
10537
|
+
},
|
|
10538
|
+
"contextWindow": 200000,
|
|
10539
|
+
"maxTokens": 64000,
|
|
10540
|
+
"thinking": {
|
|
10541
|
+
"mode": "budget",
|
|
10542
|
+
"efforts": [
|
|
10543
|
+
"minimal",
|
|
10544
|
+
"low",
|
|
10545
|
+
"medium",
|
|
10546
|
+
"high"
|
|
10547
|
+
]
|
|
10548
|
+
}
|
|
10549
|
+
},
|
|
10550
|
+
"us-gov.anthropic.claude-opus-4-1-20250805-v1:0": {
|
|
10551
|
+
"id": "us-gov.anthropic.claude-opus-4-1-20250805-v1:0",
|
|
10552
|
+
"name": "Claude Opus 4.1 (GovCloud)",
|
|
10553
|
+
"api": "bedrock-converse-stream",
|
|
10554
|
+
"provider": "amazon-bedrock",
|
|
10555
|
+
"baseUrl": "https://bedrock-runtime.us-east-1.amazonaws.com",
|
|
10556
|
+
"reasoning": true,
|
|
10557
|
+
"input": [
|
|
10558
|
+
"text",
|
|
10559
|
+
"image"
|
|
10560
|
+
],
|
|
10561
|
+
"cost": {
|
|
10562
|
+
"input": 15,
|
|
10563
|
+
"output": 75,
|
|
10564
|
+
"cacheRead": 1.5,
|
|
10565
|
+
"cacheWrite": 18.75
|
|
10566
|
+
},
|
|
10567
|
+
"contextWindow": 200000,
|
|
10568
|
+
"maxTokens": 32000,
|
|
10569
|
+
"thinking": {
|
|
10570
|
+
"mode": "budget",
|
|
10571
|
+
"efforts": [
|
|
10572
|
+
"minimal",
|
|
10573
|
+
"low",
|
|
10574
|
+
"medium",
|
|
10575
|
+
"high"
|
|
10576
|
+
]
|
|
10577
|
+
}
|
|
10578
|
+
},
|
|
10579
|
+
"us-gov.anthropic.claude-opus-4-5-20251101-v1:0": {
|
|
10580
|
+
"id": "us-gov.anthropic.claude-opus-4-5-20251101-v1:0",
|
|
10581
|
+
"name": "Claude Opus 4.5 (GovCloud)",
|
|
10582
|
+
"api": "bedrock-converse-stream",
|
|
10583
|
+
"provider": "amazon-bedrock",
|
|
10584
|
+
"baseUrl": "https://bedrock-runtime.us-east-1.amazonaws.com",
|
|
10585
|
+
"reasoning": true,
|
|
10586
|
+
"input": [
|
|
10587
|
+
"text",
|
|
10588
|
+
"image"
|
|
10589
|
+
],
|
|
10590
|
+
"cost": {
|
|
10591
|
+
"input": 5,
|
|
10592
|
+
"output": 25,
|
|
10593
|
+
"cacheRead": 0.5,
|
|
10594
|
+
"cacheWrite": 6.25
|
|
10595
|
+
},
|
|
10596
|
+
"contextWindow": 200000,
|
|
10597
|
+
"maxTokens": 64000,
|
|
10598
|
+
"thinking": {
|
|
10599
|
+
"mode": "anthropic-budget-effort",
|
|
10600
|
+
"efforts": [
|
|
10601
|
+
"minimal",
|
|
10602
|
+
"low",
|
|
10603
|
+
"medium",
|
|
10604
|
+
"high"
|
|
10605
|
+
]
|
|
10606
|
+
}
|
|
10607
|
+
},
|
|
10608
|
+
"us-gov.anthropic.claude-opus-4-6-v1": {
|
|
10609
|
+
"id": "us-gov.anthropic.claude-opus-4-6-v1",
|
|
10610
|
+
"name": "Claude Opus 4.6 (GovCloud)",
|
|
10611
|
+
"api": "bedrock-converse-stream",
|
|
10612
|
+
"provider": "amazon-bedrock",
|
|
10613
|
+
"baseUrl": "https://bedrock-runtime.us-east-1.amazonaws.com",
|
|
10614
|
+
"reasoning": true,
|
|
10615
|
+
"input": [
|
|
10616
|
+
"text",
|
|
10617
|
+
"image"
|
|
10618
|
+
],
|
|
10619
|
+
"cost": {
|
|
10620
|
+
"input": 5,
|
|
10621
|
+
"output": 25,
|
|
10622
|
+
"cacheRead": 0.5,
|
|
10623
|
+
"cacheWrite": 6.25
|
|
10624
|
+
},
|
|
10625
|
+
"contextWindow": 1000000,
|
|
10626
|
+
"maxTokens": 128000,
|
|
10627
|
+
"thinking": {
|
|
10628
|
+
"mode": "anthropic-adaptive",
|
|
10629
|
+
"efforts": [
|
|
10630
|
+
"low",
|
|
10631
|
+
"medium",
|
|
10632
|
+
"high",
|
|
10633
|
+
"max"
|
|
10634
|
+
]
|
|
10635
|
+
}
|
|
10636
|
+
},
|
|
10637
|
+
"us-gov.anthropic.claude-opus-4-7": {
|
|
10638
|
+
"id": "us-gov.anthropic.claude-opus-4-7",
|
|
10639
|
+
"name": "Claude Opus 4.7 (GovCloud)",
|
|
10640
|
+
"api": "bedrock-converse-stream",
|
|
10641
|
+
"provider": "amazon-bedrock",
|
|
10642
|
+
"baseUrl": "https://bedrock-runtime.us-east-1.amazonaws.com",
|
|
10643
|
+
"reasoning": true,
|
|
10644
|
+
"input": [
|
|
10645
|
+
"text",
|
|
10646
|
+
"image"
|
|
10647
|
+
],
|
|
10648
|
+
"cost": {
|
|
10649
|
+
"input": 5,
|
|
10650
|
+
"output": 25,
|
|
10651
|
+
"cacheRead": 0.5,
|
|
10652
|
+
"cacheWrite": 6.25
|
|
10653
|
+
},
|
|
10654
|
+
"contextWindow": 1000000,
|
|
10655
|
+
"maxTokens": 128000,
|
|
10656
|
+
"thinking": {
|
|
10657
|
+
"mode": "anthropic-adaptive",
|
|
10658
|
+
"efforts": [
|
|
10659
|
+
"low",
|
|
10660
|
+
"medium",
|
|
10661
|
+
"high",
|
|
10662
|
+
"max"
|
|
10663
|
+
],
|
|
10664
|
+
"supportsDisplay": true
|
|
10665
|
+
}
|
|
10666
|
+
},
|
|
10667
|
+
"us-gov.anthropic.claude-opus-4-8": {
|
|
10668
|
+
"id": "us-gov.anthropic.claude-opus-4-8",
|
|
10669
|
+
"name": "Claude Opus 4.8 (GovCloud)",
|
|
10670
|
+
"api": "bedrock-converse-stream",
|
|
10671
|
+
"provider": "amazon-bedrock",
|
|
10672
|
+
"baseUrl": "https://bedrock-runtime.us-east-1.amazonaws.com",
|
|
10673
|
+
"reasoning": true,
|
|
10674
|
+
"input": [
|
|
10675
|
+
"text",
|
|
10676
|
+
"image"
|
|
10677
|
+
],
|
|
10678
|
+
"cost": {
|
|
10679
|
+
"input": 5,
|
|
10680
|
+
"output": 25,
|
|
10681
|
+
"cacheRead": 0.5,
|
|
10682
|
+
"cacheWrite": 6.25
|
|
10683
|
+
},
|
|
10684
|
+
"contextWindow": 1000000,
|
|
10685
|
+
"maxTokens": 128000,
|
|
10686
|
+
"thinking": {
|
|
10687
|
+
"mode": "anthropic-adaptive",
|
|
10688
|
+
"efforts": [
|
|
10689
|
+
"low",
|
|
10690
|
+
"medium",
|
|
10691
|
+
"high",
|
|
10692
|
+
"max"
|
|
10693
|
+
],
|
|
10694
|
+
"supportsDisplay": true
|
|
10695
|
+
}
|
|
10696
|
+
},
|
|
10697
|
+
"us-gov.anthropic.claude-opus-5": {
|
|
10698
|
+
"id": "us-gov.anthropic.claude-opus-5",
|
|
10699
|
+
"name": "Claude Opus 5 (GovCloud)",
|
|
10700
|
+
"api": "bedrock-converse-stream",
|
|
10701
|
+
"provider": "amazon-bedrock",
|
|
10702
|
+
"baseUrl": "https://bedrock-runtime.us-east-1.amazonaws.com",
|
|
10703
|
+
"reasoning": true,
|
|
10704
|
+
"input": [
|
|
10705
|
+
"text",
|
|
10706
|
+
"image"
|
|
10707
|
+
],
|
|
10708
|
+
"cost": {
|
|
10709
|
+
"input": 5,
|
|
10710
|
+
"output": 25,
|
|
10711
|
+
"cacheRead": 0.5,
|
|
10712
|
+
"cacheWrite": 6.25
|
|
10713
|
+
},
|
|
10714
|
+
"contextWindow": 1000000,
|
|
10715
|
+
"maxTokens": 128000,
|
|
10716
|
+
"thinking": {
|
|
10717
|
+
"mode": "anthropic-adaptive",
|
|
10718
|
+
"efforts": [
|
|
10719
|
+
"low",
|
|
10720
|
+
"medium",
|
|
10721
|
+
"high",
|
|
10722
|
+
"max"
|
|
10723
|
+
],
|
|
10724
|
+
"supportsDisplay": true
|
|
10725
|
+
}
|
|
10726
|
+
},
|
|
10727
|
+
"us-gov.anthropic.claude-sonnet-4-5-20250929-v1:0": {
|
|
10728
|
+
"id": "us-gov.anthropic.claude-sonnet-4-5-20250929-v1:0",
|
|
10729
|
+
"name": "Claude Sonnet 4.5 (GovCloud)",
|
|
10730
|
+
"api": "bedrock-converse-stream",
|
|
10731
|
+
"provider": "amazon-bedrock",
|
|
10732
|
+
"baseUrl": "https://bedrock-runtime.us-east-1.amazonaws.com",
|
|
10733
|
+
"reasoning": true,
|
|
10734
|
+
"input": [
|
|
10735
|
+
"text",
|
|
10736
|
+
"image"
|
|
10737
|
+
],
|
|
10738
|
+
"cost": {
|
|
10739
|
+
"input": 3,
|
|
10740
|
+
"output": 15,
|
|
10741
|
+
"cacheRead": 0.3,
|
|
10742
|
+
"cacheWrite": 3.75
|
|
10743
|
+
},
|
|
10744
|
+
"contextWindow": 200000,
|
|
10745
|
+
"maxTokens": 64000,
|
|
10746
|
+
"thinking": {
|
|
10747
|
+
"mode": "budget",
|
|
10748
|
+
"efforts": [
|
|
10749
|
+
"minimal",
|
|
10750
|
+
"low",
|
|
10751
|
+
"medium",
|
|
10752
|
+
"high"
|
|
10753
|
+
]
|
|
10754
|
+
}
|
|
10755
|
+
},
|
|
10756
|
+
"us-gov.anthropic.claude-sonnet-4-6": {
|
|
10757
|
+
"id": "us-gov.anthropic.claude-sonnet-4-6",
|
|
10758
|
+
"name": "Claude Sonnet 4.6 (GovCloud)",
|
|
10759
|
+
"api": "bedrock-converse-stream",
|
|
10760
|
+
"provider": "amazon-bedrock",
|
|
10761
|
+
"baseUrl": "https://bedrock-runtime.us-east-1.amazonaws.com",
|
|
10762
|
+
"reasoning": true,
|
|
10763
|
+
"input": [
|
|
10764
|
+
"text",
|
|
10765
|
+
"image"
|
|
10766
|
+
],
|
|
10767
|
+
"cost": {
|
|
10768
|
+
"input": 3,
|
|
10769
|
+
"output": 15,
|
|
10770
|
+
"cacheRead": 0.3,
|
|
10771
|
+
"cacheWrite": 3.75
|
|
10772
|
+
},
|
|
10773
|
+
"contextWindow": 1000000,
|
|
10774
|
+
"maxTokens": 64000,
|
|
10775
|
+
"thinking": {
|
|
10776
|
+
"mode": "budget",
|
|
10777
|
+
"efforts": [
|
|
10778
|
+
"minimal",
|
|
10779
|
+
"low",
|
|
10780
|
+
"medium",
|
|
10781
|
+
"high"
|
|
10782
|
+
]
|
|
10783
|
+
}
|
|
10784
|
+
},
|
|
10785
|
+
"us-gov.anthropic.claude-sonnet-5": {
|
|
10786
|
+
"id": "us-gov.anthropic.claude-sonnet-5",
|
|
10787
|
+
"name": "Claude Sonnet 5 (GovCloud)",
|
|
10788
|
+
"api": "bedrock-converse-stream",
|
|
10789
|
+
"provider": "amazon-bedrock",
|
|
10790
|
+
"baseUrl": "https://bedrock-runtime.us-east-1.amazonaws.com",
|
|
10791
|
+
"reasoning": true,
|
|
10792
|
+
"input": [
|
|
10793
|
+
"text",
|
|
10794
|
+
"image"
|
|
10795
|
+
],
|
|
10796
|
+
"cost": {
|
|
10797
|
+
"input": 2,
|
|
10798
|
+
"output": 10,
|
|
10799
|
+
"cacheRead": 0.2,
|
|
10800
|
+
"cacheWrite": 2.5
|
|
10801
|
+
},
|
|
10802
|
+
"contextWindow": 1000000,
|
|
10803
|
+
"maxTokens": 128000,
|
|
10804
|
+
"thinking": {
|
|
10805
|
+
"mode": "anthropic-adaptive",
|
|
10806
|
+
"efforts": [
|
|
10807
|
+
"low",
|
|
10808
|
+
"medium",
|
|
10809
|
+
"high",
|
|
10810
|
+
"max"
|
|
10811
|
+
],
|
|
10812
|
+
"supportsDisplay": true
|
|
10813
|
+
}
|
|
10814
|
+
},
|
|
10491
10815
|
"us.amazon.nova-lite-v1:0": {
|
|
10492
10816
|
"id": "us.amazon.nova-lite-v1:0",
|
|
10493
10817
|
"name": "Nova Lite",
|
|
@@ -105772,4 +106096,4 @@
|
|
|
105772
106096
|
}
|
|
105773
106097
|
}
|
|
105774
106098
|
}
|
|
105775
|
-
}
|
|
106099
|
+
}
|
|
@@ -5608,14 +5608,25 @@ const MODELS_DEV_PROVIDER_DESCRIPTORS_BEDROCK: readonly ModelsDevProviderDescrip
|
|
|
5608
5608
|
id: crossRegionId,
|
|
5609
5609
|
name: toModelName(m.name, crossRegionId),
|
|
5610
5610
|
};
|
|
5611
|
-
// Also emit EU
|
|
5611
|
+
// Also emit EU and AWS GovCloud (`us-gov.`) geo inference-profile
|
|
5612
|
+
// variants for Claude models. GovCloud accounts list system profiles
|
|
5613
|
+
// under the `us-gov.` prefix (e.g. us-gov.anthropic.claude-sonnet-4-5-…);
|
|
5614
|
+
// without these rows the catalog only has commercial geos (`us.`/`eu.`/…)
|
|
5615
|
+
// and model resolution rejects the GovCloud id (or misroutes commercial
|
|
5616
|
+
// geos onto us-east-1 with GovCloud credentials → 403).
|
|
5612
5617
|
if (modelId.startsWith("anthropic.claude-")) {
|
|
5618
|
+
const displayName = toModelName(m.name, modelId);
|
|
5613
5619
|
return [
|
|
5614
5620
|
bedrockModel,
|
|
5615
5621
|
{
|
|
5616
5622
|
...bedrockModel,
|
|
5617
5623
|
id: `eu.${modelId}`,
|
|
5618
|
-
name: `${
|
|
5624
|
+
name: `${displayName} (EU)`,
|
|
5625
|
+
},
|
|
5626
|
+
{
|
|
5627
|
+
...bedrockModel,
|
|
5628
|
+
id: `us-gov.${modelId}`,
|
|
5629
|
+
name: `${displayName} (GovCloud)`,
|
|
5619
5630
|
},
|
|
5620
5631
|
];
|
|
5621
5632
|
}
|