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

推荐订阅源

Recent Announcements
Recent Announcements
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
MongoDB | Blog
MongoDB | Blog
H
Help Net Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
人人都是产品经理
人人都是产品经理
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The GitHub Blog
The GitHub Blog
V
V2EX
Microsoft Security Blog
Microsoft Security Blog
V
Visual Studio Blog
A
About on SuperTechFans
博客园_首页
L
LangChain Blog
量子位
雷峰网
雷峰网
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Jina AI
Jina AI
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
M
MIT News - Artificial intelligence
N
Netflix TechBlog - Medium

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(plugins): keep explicit web providers on fast path · ...
vincentkoc · 2026-05-05 · via Recent Commits to openclaw:main

@@ -781,8 +781,8 @@ describe("openai transport stream", () => {

781781

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

782782

});

783783784-

it("keeps OpenRouter thinking format for declared OpenRouter providers on custom proxy URLs", async () => {

785-

const streamFn = buildTransportAwareSimpleStreamFn(

784+

it("keeps OpenRouter thinking format for declared OpenRouter providers on custom proxy URLs", () => {

785+

const params = buildOpenAICompletionsParams(

786786

attachModelProviderRequestTransport(

787787

{

788788

id: "anthropic/claude-sonnet-4",

@@ -803,54 +803,25 @@ describe("openai transport stream", () => {

803803

},

804804

},

805805

),

806-

);

807-808-

expect(streamFn).toBeTypeOf("function");

809-

let capturedPayload: Record<string, unknown> | undefined;

810-

let resolveCaptured!: () => void;

811-

const captured = new Promise<void>((resolve) => {

812-

resolveCaptured = resolve;

813-

});

814-815-

void streamFn!(

816-

{

817-

id: "anthropic/claude-sonnet-4",

818-

name: "Claude Sonnet 4",

819-

api: "openclaw-openai-completions-transport",

820-

provider: "openrouter",

821-

baseUrl: "https://proxy.example.com/v1",

822-

reasoning: true,

823-

input: ["text"],

824-

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

825-

contextWindow: 200000,

826-

maxTokens: 8192,

827-

} as Model<"openclaw-openai-completions-transport">,

828806

{

829807

systemPrompt: "system",

830808

messages: [],

831809

tools: [],

832810

} as never,

833811

{

834812

reasoningEffort: "high",

835-

onPayload: async (payload: unknown) => {

836-

capturedPayload = payload as Record<string, unknown>;

837-

resolveCaptured();

838-

return payload;

839-

},

840813

} as never,

841-

);

842-843-

await captured;

814+

) as Record<string, unknown>;

844815845-

expect(capturedPayload).toMatchObject({

816+

expect(params).toMatchObject({

846817

reasoning: {

847818

effort: "high",

848819

},

849820

});

850821

});

851822852-

it("keeps OpenRouter thinking format for native OpenRouter hosts behind custom provider ids", async () => {

853-

const streamFn = buildTransportAwareSimpleStreamFn(

823+

it("keeps OpenRouter thinking format for native OpenRouter hosts behind custom provider ids", () => {

824+

const params = buildOpenAICompletionsParams(

854825

attachModelProviderRequestTransport(

855826

{

856827

id: "anthropic/claude-sonnet-4",

@@ -871,46 +842,17 @@ describe("openai transport stream", () => {

871842

},

872843

},

873844

),

874-

);

875-876-

expect(streamFn).toBeTypeOf("function");

877-

let capturedPayload: Record<string, unknown> | undefined;

878-

let resolveCaptured!: () => void;

879-

const captured = new Promise<void>((resolve) => {

880-

resolveCaptured = resolve;

881-

});

882-883-

void streamFn!(

884-

{

885-

id: "anthropic/claude-sonnet-4",

886-

name: "Claude Sonnet 4",

887-

api: "openclaw-openai-completions-transport",

888-

provider: "custom-openrouter",

889-

baseUrl: "https://openrouter.ai/api/v1",

890-

reasoning: true,

891-

input: ["text"],

892-

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

893-

contextWindow: 200000,

894-

maxTokens: 8192,

895-

} as Model<"openclaw-openai-completions-transport">,

896845

{

897846

systemPrompt: "system",

898847

messages: [],

899848

tools: [],

900849

} as never,

901850

{

902851

reasoningEffort: "high",

903-

onPayload: async (payload: unknown) => {

904-

capturedPayload = payload as Record<string, unknown>;

905-

resolveCaptured();

906-

return payload;

907-

},

908852

} as never,

909-

);

910-911-

await captured;

853+

) as Record<string, unknown>;

912854913-

expect(capturedPayload).toMatchObject({

855+

expect(params).toMatchObject({

914856

reasoning: {

915857

effort: "high",

916858

},