feat(kimi-coding): update platform and version for Kimi Coding integration

This commit is contained in:
nyatoru
2026-03-10 14:18:57 +07:00
parent 3991c96c78
commit 6e1bf4652d
3 changed files with 6 additions and 6 deletions

View File

@@ -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";

View File

@@ -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";

View File

@@ -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}`;