Files
openclaw/extensions/meta/thinking.ts
Peter Steinberger 6fd9cc92b7 fix(meta): live validation targets deployed Muse Spark 1.1 (#103163)
* fix(meta): target Muse Spark 1.1 in live checks

* chore: follow release-owned changelog policy
2026-07-10 01:00:31 +01:00

22 lines
739 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;
}