Auth: switch Kimi Coding to built-in provider

This commit is contained in:
Mario Zechner
2026-01-31 06:04:10 +01:00
parent ca47b0d79c
commit bf15d0a3f5
20 changed files with 85 additions and 222 deletions

View File

@@ -74,13 +74,13 @@ export async function setMoonshotApiKey(key: string, agentDir?: string) {
});
}
export async function setKimiCodeApiKey(key: string, agentDir?: string) {
export async function setKimiCodingApiKey(key: string, agentDir?: string) {
// Write to resolved agent dir so gateway finds credentials on startup.
upsertAuthProfile({
profileId: "kimi-code:default",
profileId: "kimi-coding:default",
credential: {
type: "api_key",
provider: "kimi-code",
provider: "kimi-coding",
key,
},
agentDir: resolveAuthAgentDir(agentDir),