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

推荐订阅源

Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
量子位
美团技术团队
大猫的无限游戏
大猫的无限游戏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Last Week in AI
Last Week in AI
博客园 - 司徒正美
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
C
Check Point Blog
博客园 - 三生石上(FineUI控件)
N
Netflix TechBlog - Medium
Recent Announcements
Recent Announcements
有赞技术团队
有赞技术团队
月光博客
月光博客

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: accept singular tool_call finish reason · openclaw/o...
steipete · 2026-04-25 · via Recent Commits to openclaw:main

@@ -2611,6 +2611,93 @@ describe("openai transport stream", () => {

26112611

]);

26122612

});

261326132614+

it("treats singular tool_call finish_reason as tool use", async () => {

2615+

const model = {

2616+

id: "minimax-m2.5-8bit",

2617+

name: "MiniMax M2.5 8bit",

2618+

api: "openai-completions",

2619+

provider: "mlx-lm",

2620+

baseUrl: "http://localhost:1234/v1",

2621+

reasoning: false,

2622+

input: ["text"],

2623+

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

2624+

contextWindow: 128000,

2625+

maxTokens: 8192,

2626+

} satisfies Model<"openai-completions">;

2627+2628+

const output = {

2629+

role: "assistant" as const,

2630+

content: [],

2631+

api: model.api,

2632+

provider: model.provider,

2633+

model: model.id,

2634+

usage: {

2635+

input: 0,

2636+

output: 0,

2637+

cacheRead: 0,

2638+

cacheWrite: 0,

2639+

totalTokens: 0,

2640+

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

2641+

},

2642+

stopReason: "stop",

2643+

timestamp: Date.now(),

2644+

};

2645+2646+

const stream: { push(event: unknown): void } = { push() {} };

2647+2648+

const mockChunks = [

2649+

{

2650+

id: "chatcmpl-mlx",

2651+

object: "chat.completion.chunk" as const,

2652+

created: 1775425651,

2653+

model: model.id,

2654+

choices: [

2655+

{

2656+

index: 0,

2657+

delta: {

2658+

tool_calls: [

2659+

{

2660+

id: "call_1",

2661+

type: "function" as const,

2662+

function: { name: "lookup", arguments: "{}" },

2663+

},

2664+

],

2665+

},

2666+

logprobs: null,

2667+

finish_reason: null,

2668+

},

2669+

],

2670+

},

2671+

{

2672+

id: "chatcmpl-mlx",

2673+

object: "chat.completion.chunk" as const,

2674+

created: 1775425651,

2675+

model: model.id,

2676+

choices: [

2677+

{

2678+

index: 0,

2679+

delta: {},

2680+

logprobs: null,

2681+

finish_reason: "tool_call",

2682+

},

2683+

],

2684+

},

2685+

] as const;

2686+2687+

async function* mockStream() {

2688+

for (const chunk of mockChunks) {

2689+

yield chunk as never;

2690+

}

2691+

}

2692+2693+

await __testing.processOpenAICompletionsStream(mockStream(), output, model, stream);

2694+2695+

expect(output.stopReason).toBe("toolUse");

2696+

expect(output.content).toContainEqual(

2697+

expect.objectContaining({ type: "toolCall", id: "call_1", name: "lookup" }),

2698+

);

2699+

});

2700+26142701

it("keeps streamed tool call arguments intact when reasoning_details repeats", async () => {

26152702

const model = {

26162703

id: "openrouter/qwen/qwen3-235b-a22b",