fix: 修复模型计费bug

This commit is contained in:
ageerle
2025-03-13 13:50:29 +08:00
parent 130646a1eb
commit 6a2f43e949

View File

@@ -134,7 +134,7 @@ public class SseServiceImpl implements ISseService {
model = "gpt-4-gizmo";
}
SysModel sysModel = sysModelService.selectModelByName(model);
if (sysModel != null) {
if (sysModel == null) {
// 如果模型不存在默认使用token扣费方式
processByToken(chatRequest.getModel(), chatString, chatMessageBo);
} else {