diff --git a/open-sse/services/tokenRefresh.ts b/open-sse/services/tokenRefresh.ts index 4a46d3b9cd..868db8856e 100644 --- a/open-sse/services/tokenRefresh.ts +++ b/open-sse/services/tokenRefresh.ts @@ -148,8 +148,8 @@ export async function refreshKimiCodingToken(refreshToken, log) { // Generate device info for headers (same as OAuth flow) const deviceId = "kimi-refresh-" + Date.now(); - const platform = "cli-proxy-api"; - const version = "1.0.0"; + const platform = "omniroute"; + const version = "2.1.2"; const deviceModel = typeof process !== "undefined" ? `${process.platform} ${process.arch}` : "unknown"; diff --git a/open-sse/services/usage.ts b/open-sse/services/usage.ts index ecfc09166d..59b5327ebe 100644 --- a/open-sse/services/usage.ts +++ b/open-sse/services/usage.ts @@ -813,8 +813,8 @@ function getKimiPlanName(level) { async function getKimiUsage(accessToken) { // Generate device info for headers (same as OAuth flow) const deviceId = "kimi-usage-" + Date.now(); - const platform = "cli-proxy-api"; - const version = "1.0.0"; + const platform = "omniroute"; + const version = "2.1.2"; const deviceModel = typeof process !== "undefined" ? `${process.platform} ${process.arch}` : "unknown"; diff --git a/src/lib/oauth/providers/kimi-coding.ts b/src/lib/oauth/providers/kimi-coding.ts index c160d4fcfc..6dd59aca0c 100644 --- a/src/lib/oauth/providers/kimi-coding.ts +++ b/src/lib/oauth/providers/kimi-coding.ts @@ -4,8 +4,8 @@ import { hostname } from "node:os"; // Generate device ID (persistent per installation) const DEVICE_ID = randomUUID(); -const PLATFORM = "cli-proxy-api"; -const VERSION = "1.0.0"; +const PLATFORM = "omniroute"; +const VERSION = "2.1.2"; const DEVICE_NAME = hostname(); const DEVICE_MODEL = `${process.platform} ${process.arch}`;