@openclaw/anthropic-vertex-provider 2026.6.6-beta.1 → 2026.6.6-beta.2
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/dist/stream-runtime.js +9 -5
- package/npm-shrinkwrap.json +2 -2
- package/package.json +4 -4
package/dist/stream-runtime.js
CHANGED
|
@@ -18,8 +18,11 @@ function isClaudeOpus47OrNewerModel(modelId) {
|
|
|
18
18
|
function isClaudeFable5Model(modelId) {
|
|
19
19
|
return resolveClaudeFable5ModelIdentity({ id: modelId }) !== void 0;
|
|
20
20
|
}
|
|
21
|
+
function isClaudeMythos5Model(modelId) {
|
|
22
|
+
return /(?:^|-)claude-mythos-5(?=$|[^a-z0-9])/.test(resolveClaudeModelIdentity({ id: modelId }));
|
|
23
|
+
}
|
|
21
24
|
function supportsAdaptiveThinking(modelId) {
|
|
22
|
-
return supportsClaudeAdaptiveThinking({ id: modelId });
|
|
25
|
+
return supportsClaudeAdaptiveThinking({ id: modelId }) || isClaudeMythos5Model(modelId);
|
|
23
26
|
}
|
|
24
27
|
function mapAnthropicAdaptiveEffort(reasoning, model, modelId) {
|
|
25
28
|
const resolvedReasoning = clampThinkingLevel(typeof model.params?.canonicalModelId === "string" ? {
|
|
@@ -34,8 +37,8 @@ function mapAnthropicAdaptiveEffort(reasoning, model, modelId) {
|
|
|
34
37
|
low: "low",
|
|
35
38
|
medium: "medium",
|
|
36
39
|
high: "high",
|
|
37
|
-
xhigh: isClaudeFable5Model(modelId) ? "xhigh" : isClaudeOpus47OrNewerModel(modelId) ? "xhigh" : "high",
|
|
38
|
-
max: supportsClaudeNativeMaxEffort({ id: modelId }) ? "max" : "high"
|
|
40
|
+
xhigh: isClaudeFable5Model(modelId) ? "xhigh" : isClaudeOpus47OrNewerModel(modelId) || isClaudeMythos5Model(modelId) ? "xhigh" : "high",
|
|
41
|
+
max: supportsClaudeNativeMaxEffort({ id: modelId }) || isClaudeMythos5Model(modelId) ? "max" : "high"
|
|
39
42
|
}[resolvedReasoning] ?? "high";
|
|
40
43
|
}
|
|
41
44
|
function resolveAnthropicVertexMaxTokens(params) {
|
|
@@ -83,8 +86,9 @@ function createAnthropicVertexStreamFn(projectId, region, baseURL, deps = defaul
|
|
|
83
86
|
});
|
|
84
87
|
const contractModelId = resolveClaudeModelIdentity(model);
|
|
85
88
|
const fable5 = isClaudeFable5Model(contractModelId);
|
|
86
|
-
const
|
|
87
|
-
const
|
|
89
|
+
const mandatoryAdaptiveThinking = fable5 || isClaudeMythos5Model(contractModelId);
|
|
90
|
+
const reasoning = options?.reasoning ?? (mandatoryAdaptiveThinking ? "high" : void 0);
|
|
91
|
+
const temperature = mandatoryAdaptiveThinking || Boolean(reasoning && supportsAdaptiveThinking(contractModelId)) || isClaudeOpus47OrNewerModel(contractModelId) || isClaudeMythos5Model(contractModelId) ? void 0 : options?.temperature;
|
|
88
92
|
const opts = {
|
|
89
93
|
client,
|
|
90
94
|
...temperature !== void 0 ? { temperature } : {},
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/anthropic-vertex-provider",
|
|
3
|
-
"version": "2026.6.6-beta.
|
|
3
|
+
"version": "2026.6.6-beta.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/anthropic-vertex-provider",
|
|
9
|
-
"version": "2026.6.6-beta.
|
|
9
|
+
"version": "2026.6.6-beta.2",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@anthropic-ai/vertex-sdk": "0.16.1"
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/anthropic-vertex-provider",
|
|
3
|
-
"version": "2026.6.6-beta.
|
|
3
|
+
"version": "2026.6.6-beta.2",
|
|
4
4
|
"description": "OpenClaw Anthropic Vertex provider plugin for Claude models on Google Vertex AI.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"minHostVersion": ">=2026.5.12-beta.1"
|
|
21
21
|
},
|
|
22
22
|
"compat": {
|
|
23
|
-
"pluginApi": ">=2026.6.6-beta.
|
|
23
|
+
"pluginApi": ">=2026.6.6-beta.2"
|
|
24
24
|
},
|
|
25
25
|
"build": {
|
|
26
|
-
"openclawVersion": "2026.6.6-beta.
|
|
26
|
+
"openclawVersion": "2026.6.6-beta.2",
|
|
27
27
|
"bundledDist": false
|
|
28
28
|
},
|
|
29
29
|
"release": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"README.md"
|
|
42
42
|
],
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"openclaw": ">=2026.6.6-beta.
|
|
44
|
+
"openclaw": ">=2026.6.6-beta.2"
|
|
45
45
|
},
|
|
46
46
|
"peerDependenciesMeta": {
|
|
47
47
|
"openclaw": {
|