feat(kimi-coding): Added Kimi Coding to the list of supported OAuth providers with specific configuration.

This commit is contained in:
decolua
2026-03-12 10:48:11 +07:00
parent f1bf027c68
commit a224f68e5c
4 changed files with 38 additions and 5 deletions

View File

@@ -564,3 +564,18 @@ export const SKIP_PATTERNS = [
"Please write a 5-10 word title for the following conversation:"
];
// Generate Kimi OAuth custom headers
export function buildKimiHeaders() {
const deviceId = `kimi-${Date.now()}`;
const platform = "9router";
const version = "2.1.2";
const deviceModel = typeof process !== "undefined" ? `${process.platform} ${process.arch}` : "unknown";
return {
"X-Msh-Platform": platform,
"X-Msh-Version": version,
"X-Msh-Device-Model": deviceModel,
"X-Msh-Device-Id": deviceId
};
}