@openclaw/anthropic-vertex-provider 2026.8.1-beta.2 → 2026.8.1-beta.3
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 +4 -2
- package/package.json +4 -4
package/dist/stream-runtime.js
CHANGED
|
@@ -3,6 +3,7 @@ import { requiresClaudeMandatoryAdaptiveThinking, resolveClaudeFable5ModelIdenti
|
|
|
3
3
|
import { AnthropicVertex } from "@anthropic-ai/vertex-sdk";
|
|
4
4
|
import { GoogleAuth } from "google-auth-library";
|
|
5
5
|
import { clampThinkingLevel, stream } from "openclaw/plugin-sdk/llm";
|
|
6
|
+
import { copyProviderAcceptanceObserver } from "openclaw/plugin-sdk/provider-transport-runtime";
|
|
6
7
|
import { EnvHttpProxyAgent, fetch } from "undici";
|
|
7
8
|
//#region extensions/anthropic-vertex/stream-runtime.ts
|
|
8
9
|
/**
|
|
@@ -98,7 +99,7 @@ function createAnthropicVertexStreamFn(projectId, region, baseURL, deps = defaul
|
|
|
98
99
|
const requestedReasoning = options?.reasoning;
|
|
99
100
|
const reasoning = requestedReasoning === "off" && mandatoryAdaptiveThinking ? "low" : requestedReasoning ?? (mandatoryAdaptiveThinking || adaptiveDefaultClaude5 ? "high" : void 0);
|
|
100
101
|
const temperature = mandatoryAdaptiveThinking || Boolean(reasoning && reasoning !== "off" && supportsAdaptiveThinking(contractModelId)) || isClaudeOpus47OrNewerModel(contractModelId) || isClaudeMythos5Model(contractModelId) ? void 0 : options?.temperature;
|
|
101
|
-
const opts = {
|
|
102
|
+
const opts = copyProviderAcceptanceObserver(options, {
|
|
102
103
|
client,
|
|
103
104
|
...temperature !== void 0 ? { temperature } : {},
|
|
104
105
|
...maxTokens !== void 0 ? { maxTokens } : {},
|
|
@@ -107,9 +108,10 @@ function createAnthropicVertexStreamFn(projectId, region, baseURL, deps = defaul
|
|
|
107
108
|
sessionId: options?.sessionId,
|
|
108
109
|
headers: options?.headers,
|
|
109
110
|
onPayload: options?.onPayload,
|
|
111
|
+
onResponse: options?.onResponse,
|
|
110
112
|
maxRetryDelayMs: options?.maxRetryDelayMs,
|
|
111
113
|
metadata: options?.metadata
|
|
112
|
-
};
|
|
114
|
+
});
|
|
113
115
|
if (reasoning === "off") opts.thinkingEnabled = false;
|
|
114
116
|
else if (reasoning) if (supportsAdaptiveThinking(contractModelId)) {
|
|
115
117
|
opts.thinkingEnabled = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/anthropic-vertex-provider",
|
|
3
|
-
"version": "2026.8.1-beta.
|
|
3
|
+
"version": "2026.8.1-beta.3",
|
|
4
4
|
"description": "OpenClaw Anthropic Vertex provider plugin for Claude models on Google Vertex AI.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"minHostVersion": ">=2026.5.12-beta.1"
|
|
23
23
|
},
|
|
24
24
|
"compat": {
|
|
25
|
-
"pluginApi": ">=2026.8.1-beta.
|
|
25
|
+
"pluginApi": ">=2026.8.1-beta.3"
|
|
26
26
|
},
|
|
27
27
|
"build": {
|
|
28
|
-
"openclawVersion": "2026.8.1-beta.
|
|
28
|
+
"openclawVersion": "2026.8.1-beta.3",
|
|
29
29
|
"bundledDist": false
|
|
30
30
|
},
|
|
31
31
|
"release": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"README.md"
|
|
43
43
|
],
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"openclaw": ">=2026.8.1-beta.
|
|
45
|
+
"openclaw": ">=2026.8.1-beta.3"
|
|
46
46
|
},
|
|
47
47
|
"peerDependenciesMeta": {
|
|
48
48
|
"openclaw": {
|