mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-05 06:42:12 +03:00
feat(kimi-coding): update platform and version for Kimi Coding integration
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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}`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user