@openclaw/anthropic-vertex-provider 2026.6.6-beta.2 → 2026.6.8-beta.1

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.
@@ -2,11 +2,10 @@ import { resolveAnthropicVertexClientRegion, resolveAnthropicVertexProjectId } f
2
2
  import { resolveClaudeFable5ModelIdentity, resolveClaudeModelIdentity, supportsClaudeAdaptiveThinking, supportsClaudeNativeMaxEffort, supportsClaudeNativeXhighEffort } from "openclaw/plugin-sdk/provider-model-shared";
3
3
  import { AnthropicVertex } from "@anthropic-ai/vertex-sdk";
4
4
  import { clampThinkingLevel, stream } from "openclaw/plugin-sdk/llm";
5
- import { applyAnthropicPayloadPolicyToParams, resolveAnthropicPayloadPolicy } from "openclaw/plugin-sdk/provider-stream-shared";
6
5
  //#region extensions/anthropic-vertex/stream-runtime.ts
7
6
  /**
8
7
  * Anthropic Vertex stream runtime. It constructs Vertex SDK clients and adapts
9
- * OpenClaw stream options into Anthropic Messages payload policy.
8
+ * OpenClaw stream options for the shared Anthropic Messages transport.
10
9
  */
11
10
  const defaultAnthropicVertexStreamDeps = {
12
11
  AnthropicVertex,
@@ -47,25 +46,6 @@ function resolveAnthropicVertexMaxTokens(params) {
47
46
  if (modelMax !== void 0 && requested !== void 0) return Math.min(requested, modelMax);
48
47
  return requested ?? modelMax;
49
48
  }
50
- function createAnthropicVertexOnPayload(params) {
51
- const policy = resolveAnthropicPayloadPolicy({
52
- provider: params.model.provider,
53
- api: params.model.api,
54
- baseUrl: params.model.baseUrl,
55
- cacheRetention: params.cacheRetention,
56
- enableCacheControl: true
57
- });
58
- function applyPolicy(payload) {
59
- if (payload && typeof payload === "object" && !Array.isArray(payload)) applyAnthropicPayloadPolicyToParams(payload, policy);
60
- return payload;
61
- }
62
- return async (payload, model) => {
63
- const shapedPayload = applyPolicy(payload);
64
- const nextPayload = await params.onPayload?.(shapedPayload, model);
65
- if (nextPayload === void 0 || nextPayload === shapedPayload) return shapedPayload;
66
- return applyPolicy(nextPayload);
67
- };
68
- }
69
49
  /**
70
50
  * Create a StreamFn that routes through OpenClaw's generic model stream with an
71
51
  * injected `AnthropicVertex` client. All streaming, message conversion, and
@@ -97,11 +77,7 @@ function createAnthropicVertexStreamFn(projectId, region, baseURL, deps = defaul
97
77
  cacheRetention: options?.cacheRetention,
98
78
  sessionId: options?.sessionId,
99
79
  headers: options?.headers,
100
- onPayload: createAnthropicVertexOnPayload({
101
- model: transportModel,
102
- cacheRetention: options?.cacheRetention,
103
- onPayload: options?.onPayload
104
- }),
80
+ onPayload: options?.onPayload,
105
81
  maxRetryDelayMs: options?.maxRetryDelayMs,
106
82
  metadata: options?.metadata
107
83
  };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/anthropic-vertex-provider",
3
- "version": "2026.6.6-beta.2",
3
+ "version": "2026.6.8-beta.1",
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.2",
9
+ "version": "2026.6.8-beta.1",
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.2",
3
+ "version": "2026.6.8-beta.1",
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.2"
23
+ "pluginApi": ">=2026.6.8-beta.1"
24
24
  },
25
25
  "build": {
26
- "openclawVersion": "2026.6.6-beta.2",
26
+ "openclawVersion": "2026.6.8-beta.1",
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.2"
44
+ "openclaw": ">=2026.6.8-beta.1"
45
45
  },
46
46
  "peerDependenciesMeta": {
47
47
  "openclaw": {