Files
openclaw/extensions/meta/thinking.ts
Peter Steinberger 7bf80dc2c6 chore(tooling): enforce formatting and refresh TypeScript checks (#104239)
* chore(tooling): enforce current formatter and refresh checks

* chore(tooling): keep release changelog formatter-owned

* chore(tooling): retain compatible Node type surface

* ci: enforce formatting for docs-only changes

* ci: isolate docs formatter check

* chore(tooling): apply updated lint and format rules

* chore(tooling): satisfy updated switch lint

* style(ui): apply Linux formatter layout

* test(doctor): match quiet local audio contribution

* test(doctor): assert quiet output only

* test(doctor): follow restored information contract
2026-07-11 01:09:51 -07:00

20 lines
734 B
TypeScript

// Meta plugin module implements thinking behavior.
import type { ProviderThinkingProfile } from "openclaw/plugin-sdk/plugin-entry";
const META_REASONING_MODEL_ID = "muse-spark-1.1";
function isMetaReasoningModelId(modelId: string): boolean {
return modelId.toLowerCase() === META_REASONING_MODEL_ID;
}
const META_THINKING_LEVEL_IDS = ["off", "minimal", "low", "medium", "high", "xhigh"] as const;
const META_THINKING_PROFILE = {
levels: META_THINKING_LEVEL_IDS.map((id) => ({ id })),
defaultLevel: "high",
} satisfies ProviderThinkingProfile;
export function resolveMetaThinkingProfile(modelId: string): ProviderThinkingProfile | undefined {
return isMetaReasoningModelId(modelId) ? META_THINKING_PROFILE : undefined;
}