Skip to content

Commit d5c207b

Browse files
模型定价添加一个逻辑,如果输入参数中没有model,手动添加一个model,适配后端逻辑 (#156)
* 模型定价添加一个逻辑,如果输入参数中没有model,手动添加一个model * 修改版本号
1 parent 12b409a commit d5c207b

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

bizyui/js/model_price.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ export async function addPriceBadgeToNode(node, modelName = "") {
163163
});
164164
}
165165

166+
// 如果输入信息中不包含model,需要手动添加model进去
167+
if (!nodeInputs.model) {
168+
nodeInputs.model = modelName;
169+
}
170+
166171
// 获取价格信息
167172
const priceResult = await fetchNodePrice(modelName, nodeInputs);
168173

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.83
1+
1.2.84

0 commit comments

Comments
 (0)