@wasmagent/model-moonshot
v1.0.3
Published
Moonshot (Kimi) model adapter for wasmagent
Readme
/model-moonshot
Moonshot / Kimi K2.6 adapter — per-version reasoning field handling + auto-prefix cache.
Part of wasmagent — a TypeScript + WASM agent runtime.
▽ Maintenance-mode. This adapter is functional and security-patched, but is not receiving proactive feature work — it is dominated by
GenericOpenAICompatModel+ a recipe indocs/guides/openai-compat-recipes.md. See maintenance tiers for the rationale. If you actively use this package and want it promoted to ◆ Narrative, open an issue taggedtier:promote-requestwith your use case.
Install
npm install /model-moonshot /coreUsage
import { MoonshotModel, KimiModels } from "/model-moonshot";
const model = new MoonshotModel(KimiModels.K2_6, {
apiKey: process.env.MOONSHOT_API_KEY,
thinking: { type: "enabled" },
});⚠️ Compliance — Review the Moonshot terms before sending production data.
License
Apache-2.0 — © wasmagent contributors
