mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-16 17:31:42 +00:00
* feat(moonshot): add Kimi K2.7 Code support * test(moonshot): surface K2.7 live provider errors * ci(live): accept Kimi key for Moonshot sweeps * test(moonshot): verify K2.7 across API regions
22 lines
723 B
TypeScript
22 lines
723 B
TypeScript
// Moonshot policy module exposes model-specific thinking controls before runtime registration.
|
|
import type { ProviderDefaultThinkingPolicyContext } from "openclaw/plugin-sdk/core";
|
|
|
|
export const KIMI_K2_7_CODE_MODEL_ID = "kimi-k2.7-code";
|
|
|
|
export function resolveThinkingProfile(context: ProviderDefaultThinkingPolicyContext) {
|
|
if (context.modelId.trim().toLowerCase() === KIMI_K2_7_CODE_MODEL_ID) {
|
|
return {
|
|
levels: [{ id: "low" as const, label: "on" }],
|
|
defaultLevel: "low" as const,
|
|
preserveWhenCatalogReasoningFalse: true,
|
|
};
|
|
}
|
|
return {
|
|
levels: [
|
|
{ id: "off" as const, label: "off" },
|
|
{ id: "low" as const, label: "on" },
|
|
],
|
|
defaultLevel: "off" as const,
|
|
};
|
|
}
|