test: speed up acp translator imports · openclaw/openclaw@752e76b
shakkernerd
·
2026-05-10
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -33,7 +33,7 @@ import type {
|
33 | 33 | ToolCallLocation, |
34 | 34 | ToolKind, |
35 | 35 | } from "@agentclientprotocol/sdk"; |
36 | | -import { listThinkingLevels } from "../auto-reply/thinking.js"; |
| 36 | +import { BASE_THINKING_LEVELS } from "../auto-reply/thinking.shared.js"; |
37 | 37 | import type { GatewayClient } from "../gateway/client.js"; |
38 | 38 | import type { EventFrame } from "../gateway/protocol/index.js"; |
39 | 39 | import type { GatewaySessionRow, SessionsListResult } from "../gateway/session-utils.js"; |
@@ -358,7 +358,7 @@ function buildSessionPresentation(params: {
|
358 | 358 | ...params.overrides, |
359 | 359 | }; |
360 | 360 | const availableLevelIds: string[] = row.thinkingLevels?.map((level) => level.id) ?? [ |
361 | | - ...listThinkingLevels(row.modelProvider, row.model), |
| 361 | + ...BASE_THINKING_LEVELS, |
362 | 362 | ]; |
363 | 363 | const currentModeId = normalizeOptionalString(row.thinkingLevel) || "adaptive"; |
364 | 364 | if (!availableLevelIds.includes(currentModeId)) { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。