This commit is contained in:
2026-01-17 16:19:49 +08:00
parent 0b5a0557ee
commit 2f79925e3d
7 changed files with 74 additions and 71 deletions

View File

@@ -7,7 +7,7 @@ import './ai/index.ts';
import './user/index.ts';
// TODO: 移除
import './hot-api/key-sender/index.ts';
// import './hot-api/key-sender/index.ts';
import os from 'node:os';
import { authCache } from '@/module/cache/auth.ts';

View File

@@ -143,7 +143,7 @@ program
} else if (options.start) {
console.log('启动服务', chalk.green(assistantConfig.configDir));
const config = assistantConfig.getCacheAssistantConfig();
const listenPort = options.port || config?.server?.port;
const listenPort = parseInt(options.port || config?.server?.port);
const listenPath = config?.server?.path || '::';
const server = await runServer(listenPort, listenPath);
} else {