惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Security Blog
Microsoft Security Blog
量子位
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
IT之家
IT之家
博客园 - 三生石上(FineUI控件)
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - Franky
美团技术团队
Last Week in AI
Last Week in AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
人人都是产品经理
人人都是产品经理
罗磊的独立博客
Jina AI
Jina AI
小众软件
小众软件
S
SegmentFault 最新的问题
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
雷峰网
雷峰网
博客园 - 聂微东
博客园_首页
The Cloudflare Blog
WordPress大学
WordPress大学
Apple Machine Learning Research
Apple Machine Learning Research
有赞技术团队
有赞技术团队

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(volcengine): strip unsupported tool schema keywords ·...
steipete · 2026-05-10 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -60,6 +60,7 @@ Docs: https://docs.openclaw.ai

6060

- ACP/gateway: preserve `AcpRuntimeError` cause chain (code/method/JSON-RPC detail) through the lifecycle boundary so gateway logs, telegram replies, and tool-result text show the actual upstream failure instead of opaque `Internal error`/`[object Object]`, with redaction applied before the chain reaches log or reply surfaces.

6161

- Channels/iMessage: wire `action: "reply"` attachments through `imsg send-rich --file` when the installed imsg build advertises that capability (probed once via `imsg send-rich --help` and cached on the private-API status). Reply now hydrates `media`/`mediaUrl`/`fileUrl`/`mediaUrls[0]`/`filePath`/`path`/base64 `buffer`+`filename` through the shared outbound resolver, stages buffers via the existing `withTempFile` helper, rejects `http(s)://` URL attachments with a targeted error pointing callers at `send`'s full attachment-resolver pipeline, and falls back to the explicit `imsg#114 not landed yet` error on older imsg builds. Depends on the upstream `openclaw/imsg#114` capability landing in an installable release; until then the new path stays gated and users see the same explicit fallback `#79822` introduced. (#79864) Thanks @omarshahine.

6262

- Telegram: preserve the first-preview debounce while appending true partial-stream deltas, so edited draft previews no longer duplicate earlier text when providers emit incremental output. (#80045) Thanks @TurboTheTurtle.

63+

- Volcengine/Kimi: strip provider-unsupported tool schema length and item constraint keywords for direct and coding-plan models so hosted Kimi runs do not reject message tools with `minLength`. Fixes #38817.

6364
6465

## 2026.5.9

6566
Original file line numberDiff line numberDiff line change

@@ -1,3 +1,51 @@

1+

import type { ModelCompatConfig } from "openclaw/plugin-sdk/provider-model-shared";

2+
3+

export const VOLCENGINE_UNSUPPORTED_TOOL_SCHEMA_KEYWORDS = [

4+

"minLength",

5+

"maxLength",

6+

"minItems",

7+

"maxItems",

8+

"minContains",

9+

"maxContains",

10+

] as const;

11+
12+

function mergeUnsupportedToolSchemaKeywords(existing: readonly string[] | undefined): string[] {

13+

return Array.from(new Set([...(existing ?? []), ...VOLCENGINE_UNSUPPORTED_TOOL_SCHEMA_KEYWORDS]));

14+

}

15+
16+

export function resolveVolcengineToolSchemaCompatPatch(

17+

compat?: ModelCompatConfig,

18+

): ModelCompatConfig {

19+

return {

20+

unsupportedToolSchemaKeywords: mergeUnsupportedToolSchemaKeywords(

21+

compat?.unsupportedToolSchemaKeywords,

22+

),

23+

};

24+

}

25+
26+

export function applyVolcengineToolSchemaCompat<T extends { compat?: ModelCompatConfig }>(

27+

model: T,

28+

): T {

29+

const unsupportedToolSchemaKeywords = mergeUnsupportedToolSchemaKeywords(

30+

model.compat?.unsupportedToolSchemaKeywords,

31+

);

32+

if (

33+

model.compat?.unsupportedToolSchemaKeywords?.length === unsupportedToolSchemaKeywords.length &&

34+

unsupportedToolSchemaKeywords.every(

35+

(keyword, index) => model.compat?.unsupportedToolSchemaKeywords?.[index] === keyword,

36+

)

37+

) {

38+

return model;

39+

}

40+

return {

41+

...model,

42+

compat: {

43+

...model.compat,

44+

unsupportedToolSchemaKeywords,

45+

},

46+

};

47+

}

48+
149

export { buildDoubaoCodingProvider, buildDoubaoProvider } from "./provider-catalog.js";

250

export {

351

buildDoubaoModelDefinition,

Original file line numberDiff line numberDiff line change

@@ -2,6 +2,10 @@ import { readFileSync } from "node:fs";

22

import { resolve } from "node:path";

33

import { registerSingleProviderPlugin } from "openclaw/plugin-sdk/plugin-test-runtime";

44

import { describe, expect, it } from "vitest";

5+

import {

6+

VOLCENGINE_UNSUPPORTED_TOOL_SCHEMA_KEYWORDS,

7+

resolveVolcengineToolSchemaCompatPatch,

8+

} from "./api.js";

59

import plugin from "./index.js";

610

import { DOUBAO_CODING_MODEL_CATALOG, DOUBAO_MODEL_CATALOG } from "./models.js";

711

@@ -44,4 +48,29 @@ describe("volcengine plugin", () => {

4448

"volcengine-plan": "volcengine",

4549

});

4650

});

51+
52+

it("marks direct and coding models with tool schema keyword compat", async () => {

53+

const provider = await registerSingleProviderPlugin(plugin);

54+
55+

expect(provider.hookAliases).toContain("volcengine-plan");

56+

expect(resolveVolcengineToolSchemaCompatPatch()).toEqual({

57+

unsupportedToolSchemaKeywords: [...VOLCENGINE_UNSUPPORTED_TOOL_SCHEMA_KEYWORDS],

58+

});

59+
60+

const normalized = provider.normalizeResolvedModel?.({

61+

provider: "volcengine-plan",

62+

modelId: "kimi-k2.5",

63+

model: {

64+

id: "kimi-k2.5",

65+

provider: "volcengine-plan",

66+

api: "openai-completions",

67+

compat: { unsupportedToolSchemaKeywords: ["not"] },

68+

},

69+

} as never);

70+
71+

expect(normalized?.compat?.unsupportedToolSchemaKeywords).toEqual([

72+

"not",

73+

...VOLCENGINE_UNSUPPORTED_TOOL_SCHEMA_KEYWORDS,

74+

]);

75+

});

4776

});

Original file line numberDiff line numberDiff line change

@@ -1,6 +1,7 @@

11

import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";

22

import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";

33

import { ensureModelAllowlistEntry } from "openclaw/plugin-sdk/provider-onboard";

4+

import { applyVolcengineToolSchemaCompat } from "./api.js";

45

import { DOUBAO_CODING_MODEL_CATALOG, DOUBAO_MODEL_CATALOG } from "./models.js";

56

import { buildDoubaoCodingProvider, buildDoubaoProvider } from "./provider-catalog.js";

67

import { buildVolcengineSpeechProvider } from "./speech-provider.js";

@@ -18,6 +19,7 @@ export default definePluginEntry({

1819

label: "Volcengine",

1920

docsPath: "/concepts/model-providers#volcano-engine-doubao",

2021

envVars: ["VOLCANO_ENGINE_API_KEY"],

22+

hookAliases: ["volcengine-plan"],

2123

auth: [

2224

createProviderApiKeyAuthMethod({

2325

providerId: PROVIDER_ID,

@@ -78,6 +80,7 @@ export default definePluginEntry({

7880

}));

7981

return [...volcengineModels, ...volcenginePlanModels];

8082

},

83+

normalizeResolvedModel: ({ model }) => applyVolcengineToolSchemaCompat(model),

8184

});

8285

api.registerSpeechProvider(buildVolcengineSpeechProvider());

8386

},