Files
openclaw/extensions/moonshot/provider-contract-api.ts
Peter Steinberger 630b16805c fix(providers): refresh zai/kimi/moonshot/xai catalogs against July 2026 vendor docs (#109666)
* fix(providers): refresh vendor catalogs and setup hints

* test(providers): align registration metadata expectations
2026-07-16 22:41:03 -07:00

36 lines
968 B
TypeScript

// Moonshot API module exposes the plugin public contract.
import type { ProviderPlugin } from "openclaw/plugin-sdk/provider-model-shared";
const noopAuth = async () => ({ profiles: [] });
export function createMoonshotProvider(): ProviderPlugin {
return {
id: "moonshot",
label: "Moonshot",
docsPath: "/providers/moonshot",
aliases: ["moonshotai", "moonshot-ai"],
auth: [
{
id: "api-key",
kind: "api_key",
label: "Kimi API key (.ai)",
hint: "Kimi API models · https://platform.kimi.ai/docs/pricing/chat",
run: noopAuth,
wizard: {
groupLabel: "Moonshot AI (Kimi)",
},
},
{
id: "api-key-cn",
kind: "api_key",
label: "Kimi API key (.cn)",
hint: "Kimi API models · https://platform.kimi.ai/docs/pricing/chat",
run: noopAuth,
wizard: {
groupLabel: "Moonshot AI (Kimi)",
},
},
],
};
}