feat: add Moonshot auth choice

This commit is contained in:
Peter Steinberger
2026-01-12 06:47:52 +00:00
parent 960ed66501
commit 496bad8b98
10 changed files with 316 additions and 26 deletions

View File

@@ -17,6 +17,7 @@ export type AuthChoiceGroupId =
| "anthropic"
| "google"
| "openrouter"
| "moonshot"
| "zai"
| "opencode-zen"
| "minimax";
@@ -58,6 +59,12 @@ const AUTH_CHOICE_GROUP_DEFS: {
hint: "API key",
choices: ["openrouter-api-key"],
},
{
value: "moonshot",
label: "Moonshot AI",
hint: "Kimi K2 preview",
choices: ["moonshot-api-key"],
},
{
value: "zai",
label: "Z.AI (GLM 4.7)",
@@ -159,6 +166,7 @@ export function buildAuthChoiceOptions(params: {
});
options.push({ value: "openai-api-key", label: "OpenAI API key" });
options.push({ value: "openrouter-api-key", label: "OpenRouter API key" });
options.push({ value: "moonshot-api-key", label: "Moonshot AI API key" });
options.push({
value: "antigravity",
label: "Google Antigravity (Claude Opus 4.5, Gemini 3, etc.)",