test(live): use low reasoning for cache probes · openclaw/openclaw@7295f19
vincentkoc
·
2026-05-05
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -21,6 +21,7 @@ const OPENAI_TIMEOUT_MS = 120_000;
|
21 | 21 | const ANTHROPIC_TIMEOUT_MS = 120_000; |
22 | 22 | const LIVE_CACHE_LANE_RETRIES = 1; |
23 | 23 | const LIVE_CACHE_RESPONSE_RETRIES = 2; |
| 24 | +const OPENAI_CACHE_REASONING = "low" as unknown as never; |
24 | 25 | const OPENAI_PREFIX = buildStableCachePrefix("openai"); |
25 | 26 | const OPENAI_MCP_PREFIX = buildStableCachePrefix("openai-mcp-style"); |
26 | 27 | const ANTHROPIC_PREFIX = buildStableCachePrefix("anthropic"); |
@@ -168,7 +169,7 @@ async function runToolOnlyTurn(params: {
|
168 | 169 | sessionId: params.sessionId, |
169 | 170 | maxTokens: 128, |
170 | 171 | temperature: 0, |
171 | | - ...(params.providerTag === "openai" ? { reasoning: "none" as unknown as never } : {}), |
| 172 | + ...(params.providerTag === "openai" ? { reasoning: OPENAI_CACHE_REASONING } : {}), |
172 | 173 | }; |
173 | 174 | let prompt = `Call the tool \`${params.tool.name}\` with {}. IMPORTANT: respond ONLY with the tool call and no other text.`; |
174 | 175 | let response = await completeSimpleWithLiveTimeout( |
@@ -243,7 +244,7 @@ async function completeCacheProbe(params: {
|
243 | 244 | sessionId: params.sessionId, |
244 | 245 | maxTokens: params.maxTokens ?? 64, |
245 | 246 | temperature: 0, |
246 | | - ...(params.providerTag === "openai" ? { reasoning: "none" as unknown as never } : {}), |
| 247 | + ...(params.providerTag === "openai" ? { reasoning: OPENAI_CACHE_REASONING } : {}), |
247 | 248 | }, |
248 | 249 | `${params.providerTag} cache lane ${params.suffix}`, |
249 | 250 | timeoutMs, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。