mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-15 10:16:07 +00:00
* 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
20 lines
734 B
TypeScript
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;
|
|
}
|