mirror of
https://github.com/vastxie/99AI.git
synced 2025-11-11 19:23:42 +08:00
v-3.0.0
This commit is contained in:
110
dist/modules/models/models.entity.js
vendored
110
dist/modules/models/models.entity.js
vendored
@@ -15,7 +15,7 @@ const baseEntity_1 = require("../../common/entity/baseEntity");
|
||||
let ModelsEntity = class ModelsEntity extends baseEntity_1.BaseEntity {
|
||||
};
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: 'key模型类型 1: openai 2: 文心一言 3:清华智谱' }),
|
||||
(0, typeorm_1.Column)({ comment: '模型类型 1: 普通对话 2: 绘画 3:高级对话' }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "keyType", void 0);
|
||||
__decorate([
|
||||
@@ -23,37 +23,69 @@ __decorate([
|
||||
__metadata("design:type", String)
|
||||
], ModelsEntity.prototype, "modelName", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '模型的key' }),
|
||||
(0, typeorm_1.Column)({ comment: '绑定的模型是?' }),
|
||||
__metadata("design:type", String)
|
||||
], ModelsEntity.prototype, "model", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '模型头像', nullable: true }),
|
||||
__metadata("design:type", String)
|
||||
], ModelsEntity.prototype, "modelAvatar", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '模型排序', default: 1 }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "modelOrder", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '模型上下文支持的最大Token', default: 2000, nullable: true }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "maxModelTokens", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '模型上下文最大条数', nullable: true }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "maxRounds", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '模型上下文最大条数', nullable: true }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "timeout", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '模型单次调用扣除的次数', default: 1 }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "deduct", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '模型扣除余额类型 1: 普通模型 2: 高级模型', default: 1 }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "deductType", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '是否使用token计费: 0:不是 1: 是', default: 0 }),
|
||||
__metadata("design:type", Boolean)
|
||||
], ModelsEntity.prototype, "isTokenBased", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '是否支持文件上传: 0:不是 1: 附件链接格式 2: 4V格式', default: 0 }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "isFileUpload", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: 'token计费比例', default: 0 }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "tokenFeeRatio", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '模型附加信息', nullable: true }),
|
||||
__metadata("design:type", String)
|
||||
], ModelsEntity.prototype, "remark", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '模型的key', nullable: true }),
|
||||
__metadata("design:type", String)
|
||||
], ModelsEntity.prototype, "key", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '模型的secret', default: null }),
|
||||
__metadata("design:type", String)
|
||||
], ModelsEntity.prototype, "secret", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '部分模型的调用token', default: null }),
|
||||
__metadata("design:type", String)
|
||||
], ModelsEntity.prototype, "accessToken", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '使用的状态: 0:禁用 1:启用', default: 1 }),
|
||||
__metadata("design:type", Boolean)
|
||||
], ModelsEntity.prototype, "status", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '绑定的模型是?' }),
|
||||
__metadata("design:type", String)
|
||||
], ModelsEntity.prototype, "model", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: 'key的状态: 1:有效 -1:被封号 -2: 错误的秘钥 -3: 余额使用完了', default: 1 }),
|
||||
(0, typeorm_1.Column)({ comment: 'key的状态: 1:有效 -1:被封号 -2: 错误的秘钥 -3: 余额使用完了', default: 1 }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "keyStatus", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: 'key权重', default: 1 }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "keyWeight", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: 'key权重', default: 1 }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "modelOrder", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: 'key的使用次数', default: 0 }),
|
||||
__metadata("design:type", Number)
|
||||
@@ -62,50 +94,10 @@ __decorate([
|
||||
(0, typeorm_1.Column)({ comment: 'key的已经使用的token数量', default: 0 }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "useToken", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '模型支持的最大Token', default: 1000 }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "maxModelTokens", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '模型设置的最大回复Token', default: 4096 }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "maxResponseTokens", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '当前模型的代理地址', nullable: true }),
|
||||
__metadata("design:type", String)
|
||||
], ModelsEntity.prototype, "proxyUrl", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '当前模型的超时时间单位s', default: 200 }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "timeout", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '单次调用扣除的次数', default: 1 }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "deduct", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '扣除余额类型 1: 普通模型 2:高级模型', default: 1 }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "deductType", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '备注信息', nullable: true }),
|
||||
__metadata("design:type", String)
|
||||
], ModelsEntity.prototype, "remark", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '限制用户上下文最大次数', nullable: true }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "maxRounds", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '是否是绘画key: 0:不是 1:是', default: 0 }),
|
||||
__metadata("design:type", Boolean)
|
||||
], ModelsEntity.prototype, "isDraw", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '是否使用token计费: 0:不是 1:是', default: 0 }),
|
||||
__metadata("design:type", Boolean)
|
||||
], ModelsEntity.prototype, "isTokenBased", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: 'token计费比例', default: 0 }),
|
||||
__metadata("design:type", Number)
|
||||
], ModelsEntity.prototype, "tokenFeeRatio", void 0);
|
||||
ModelsEntity = __decorate([
|
||||
(0, typeorm_1.Entity)({ name: 'models' })
|
||||
], ModelsEntity);
|
||||
|
||||
Reference in New Issue
Block a user