Skip to content

Commit 676dec2

Browse files
committed
更新版本号至2025.08.15.19,添加cli管理器引用,移除已废弃的设置默认模型方法
1 parent db674d4 commit 676dec2

3 files changed

Lines changed: 2 additions & 10 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "qwen2api",
3-
"version": "2025.08.14.18.20",
3+
"version": "2025.08.15.19.50",
44
"main": "src/server.js",
55
"scripts": {
66
"start": "node src/start.js",

src/routes/cli.chat.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const config = require('../config/index.js')
44
const { apiKeyVerify } = require('../middlewares/authorization.js')
55
const { handleCliChatCompletion } = require('../controllers/cli.chat.js')
66
const accountManager = require('../utils/account.js')
7+
const cliManager = require('../utils/cli.manager.js')
78

89
router.post(`${config.apiPrefix ? config.apiPrefix : ''}/cli/v1/chat/completions`,
910
apiKeyVerify,

src/utils/account.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -390,15 +390,6 @@ class Account {
390390
return markdown
391391
}
392392

393-
/**
394-
* 设置默认模型列表(已废弃,模型列表由 models-map.js 管理)
395-
* @param {Array<string>} models - 模型列表
396-
* @deprecated 模型列表现在由 models-map.js 统一管理
397-
*/
398-
async setDefaultModels(models) {
399-
logger.warn('setDefaultModels 方法已废弃,模型列表由 models-map.js 统一管理', 'ACCOUNT')
400-
}
401-
402393
/**
403394
* 获取基础模型列表
404395
* @returns {Promise<Array<string>>} 基础模型列表

0 commit comments

Comments
 (0)