mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-03-30 04:53:49 +08:00
fix: 修复模型计费bug
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user