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

推荐订阅源

博客园_首页
H
Help Net Security
N
Netflix TechBlog - Medium
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
A
About on SuperTechFans
V
V2EX
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
宝玉的分享
宝玉的分享
aimingoo的专栏
aimingoo的专栏
F
Fortinet All Blogs
博客园 - 【当耐特】
Microsoft Security Blog
Microsoft Security Blog
Martin Fowler
Martin Fowler
I
InfoQ
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
Engineering at Meta
Engineering at Meta
腾讯CDC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog RSS Feed
U
Unit 42
The Cloudflare Blog
Y
Y Combinator 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(gateway): forward OpenAI sampling params · openclaw/o...
Lellansin · 2026-05-13 · via Recent Commits to openclaw:main

@@ -1374,6 +1374,35 @@ describe("openai transport stream", () => {

13741374

expect(params.reasoning).toEqual({ effort: "high" });

13751375

});

137613761377+

it("forwards temperature and top_p to chat completions request params", () => {

1378+

const params = buildOpenAICompletionsParams(

1379+

{

1380+

id: "gpt-5.4",

1381+

name: "GPT-5.4",

1382+

api: "openai-completions",

1383+

provider: "openai",

1384+

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

1385+

reasoning: false,

1386+

input: ["text"],

1387+

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

1388+

contextWindow: 200000,

1389+

maxTokens: 8192,

1390+

} satisfies Model<"openai-completions">,

1391+

{

1392+

systemPrompt: "system",

1393+

messages: [{ role: "user", content: "hi", timestamp: 1 }],

1394+

tools: [],

1395+

} as never,

1396+

{

1397+

temperature: 0.4,

1398+

topP: 0.9,

1399+

},

1400+

);

1401+1402+

expect(params.temperature).toBe(0.4);

1403+

expect(params.top_p).toBe(0.9);

1404+

});

1405+13771406

it("does not build OpenRouter reasoning params for Hunter Alpha when reasoning is disabled", () => {

13781407

const params = buildOpenAICompletionsParams(

13791408

{

@@ -1502,6 +1531,7 @@ describe("openai transport stream", () => {

15021531

serviceTier: "auto",

15031532

sessionId: "session-123",

15041533

temperature: 0.2,

1534+

topP: 0.85,

15051535

},

15061536

{

15071537

openclaw_session_id: "session-123",

@@ -1525,6 +1555,7 @@ describe("openai transport stream", () => {

15251555

expect(params).not.toHaveProperty("prompt_cache_retention");

15261556

expect(params).not.toHaveProperty("service_tier");

15271557

expect(params).not.toHaveProperty("temperature");

1558+

expect(params).not.toHaveProperty("top_p");

15281559

});

1529156015301561

it("sanitizes Codex responses params after payload hooks mutate them without stripping cache identity", () => {

@@ -1538,6 +1569,7 @@ describe("openai transport stream", () => {

15381569

prompt_cache_retention: "24h",

15391570

service_tier: "auto",

15401571

temperature: 0.2,

1572+

top_p: 0.85,

15411573

};

1542157415431575

const sanitized = __testing.sanitizeOpenAICodexResponsesParams(

@@ -1562,6 +1594,7 @@ describe("openai transport stream", () => {

15621594

expect(sanitized).not.toHaveProperty("prompt_cache_retention");

15631595

expect(sanitized).not.toHaveProperty("service_tier");

15641596

expect(sanitized).not.toHaveProperty("temperature");

1597+

expect(sanitized).not.toHaveProperty("top_p");

15651598

});

1566159915671600

it("preserves custom Codex-compatible responses params", () => {

@@ -1588,6 +1621,7 @@ describe("openai transport stream", () => {

15881621

maxTokens: 1024,

15891622

sessionId: "session-123",

15901623

temperature: 0.2,

1624+

topP: 0.85,

15911625

},

15921626

{

15931627

openclaw_session_id: "session-123",

@@ -1603,6 +1637,7 @@ describe("openai transport stream", () => {

16031637

});

16041638

expect(params.max_output_tokens).toBe(1024);

16051639

expect(params.temperature).toBe(0.2);

1640+

expect(params.top_p).toBe(0.85);

16061641

});

1607164216081643

it("preserves custom Codex-compatible responses params after payload hooks mutate them", () => {