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

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Blog — PlanetScale
Blog — PlanetScale
小众软件
小众软件
F
Fortinet All Blogs
博客园 - 叶小钗
博客园_首页
D
DataBreaches.Net
Apple Machine Learning Research
Apple Machine Learning Research
U
Unit 42
爱范儿
爱范儿
aimingoo的专栏
aimingoo的专栏
博客园 - Franky
Martin Fowler
Martin Fowler
酷 壳 – CoolShell
酷 壳 – CoolShell
The Cloudflare Blog
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
IT之家
IT之家
M
MIT News - Artificial intelligence
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog

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(agents): keep strict mode for projected OpenAI tools ...
vincentkoc · 2026-06-18 · via Recent Commits to openclaw:main

@@ -5683,6 +5683,66 @@ describe("openai transport stream", () => {

56835683

expect(params.tools?.[0]).not.toHaveProperty("strict");

56845684

});

568556855686+

it("keeps native responses strict mode for projected tools after dropping bad schemas", () => {

5687+

const params = buildOpenAIResponsesParams(

5688+

{

5689+

id: "gpt-5.4",

5690+

name: "GPT-5.4",

5691+

api: "openai-responses",

5692+

provider: "openai",

5693+

baseUrl: "https://api.openai.com/v1",

5694+

reasoning: true,

5695+

input: ["text"],

5696+

cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },

5697+

contextWindow: 200000,

5698+

maxTokens: 8192,

5699+

} satisfies Model<"openai-responses">,

5700+

{

5701+

systemPrompt: "system",

5702+

messages: [],

5703+

tools: [

5704+

{

5705+

name: "broken",

5706+

description: "Broken",

5707+

parameters: {

5708+

type: "object",

5709+

get properties(): never {

5710+

throw new Error("properties exploded");

5711+

},

5712+

},

5713+

},

5714+

{

5715+

name: "lookup_weather",

5716+

description: "Get forecast",

5717+

parameters: {},

5718+

},

5719+

],

5720+

} as never,

5721+

undefined,

5722+

) as {

5723+

tools?: Array<{

5724+

name?: string;

5725+

strict?: boolean;

5726+

parameters?: Record<string, unknown>;

5727+

}>;

5728+

};

5729+5730+

expect(params.tools).toEqual([

5731+

{

5732+

type: "function",

5733+

name: "lookup_weather",

5734+

description: "Get forecast",

5735+

strict: true,

5736+

parameters: {

5737+

type: "object",

5738+

properties: {},

5739+

required: [],

5740+

additionalProperties: false,

5741+

},

5742+

},

5743+

]);

5744+

});

5745+56865746

it("still normalizes responses tool parameters when strict is omitted", () => {

56875747

const params = buildOpenAIResponsesParams(

56885748

{

@@ -7401,6 +7461,67 @@ describe("openai transport stream", () => {

74017461

expect(params.tools?.[0]?.function?.strict).toBe(true);

74027462

});

740374637464+

it("keeps native completions strict mode for projected tools after dropping bad schemas", () => {

7465+

const params = buildOpenAICompletionsParams(

7466+

{

7467+

id: "gpt-5",

7468+

name: "GPT-5",

7469+

api: "openai-completions",

7470+

provider: "openai",

7471+

baseUrl: "https://api.openai.com/v1",

7472+

reasoning: true,

7473+

input: ["text"],

7474+

cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },

7475+

contextWindow: 200000,

7476+

maxTokens: 8192,

7477+

} satisfies Model<"openai-completions">,

7478+

{

7479+

systemPrompt: "system",

7480+

messages: [],

7481+

tools: [

7482+

{

7483+

name: "broken",

7484+

description: "Broken",

7485+

parameters: {

7486+

type: "object",

7487+

get properties(): never {

7488+

throw new Error("properties exploded");

7489+

},

7490+

},

7491+

},

7492+

{

7493+

name: "lookup_weather",

7494+

description: "Get forecast",

7495+

parameters: {},

7496+

},

7497+

],

7498+

} as never,

7499+

undefined,

7500+

) as {

7501+

tools?: Array<{

7502+

function?: {

7503+

name?: string;

7504+

strict?: boolean;

7505+

parameters?: Record<string, unknown>;

7506+

};

7507+

}>;

7508+

};

7509+7510+

expect(params.tools?.map((tool) => tool.function)).toEqual([

7511+

{

7512+

name: "lookup_weather",

7513+

description: "Get forecast",

7514+

strict: true,

7515+

parameters: {

7516+

type: "object",

7517+

properties: {},

7518+

required: [],

7519+

additionalProperties: false,

7520+

},

7521+

},

7522+

]);

7523+

});

7524+74047525

it("falls back to completions strict:false when a native OpenAI tool schema is not strict-compatible", () => {

74057526

const params = buildOpenAICompletionsParams(

74067527

{