mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:50:43 +00:00
Merged via squash.
Prepared head SHA: 4d778d09d1
Co-authored-by: scoootscooob <167050519+scoootscooob@users.noreply.github.com>
Co-authored-by: scoootscooob <167050519+scoootscooob@users.noreply.github.com>
Reviewed-by: @scoootscooob
34 lines
785 B
TypeScript
34 lines
785 B
TypeScript
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",
|
|
auth: [
|
|
{
|
|
id: "api-key",
|
|
kind: "api_key",
|
|
label: "Kimi API key (.ai)",
|
|
hint: "Kimi K2.6 + Kimi",
|
|
run: noopAuth,
|
|
wizard: {
|
|
groupLabel: "Moonshot AI (Kimi K2.6)",
|
|
},
|
|
},
|
|
{
|
|
id: "api-key-cn",
|
|
kind: "api_key",
|
|
label: "Kimi API key (.cn)",
|
|
hint: "Kimi K2.6 + Kimi",
|
|
run: noopAuth,
|
|
wizard: {
|
|
groupLabel: "Moonshot AI (Kimi K2.6)",
|
|
},
|
|
},
|
|
],
|
|
};
|
|
}
|