mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-16 02:56:14 +00:00
* fix(meta): target Muse Spark 1.1 in live checks * chore: follow release-owned changelog policy
22 lines
739 B
TypeScript
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;
|
|
}
|