feat: 自动设置请求参数中的模型名称;

This commit is contained in:
likunlong
2025-08-19 15:12:24 +08:00
committed by Administrator
parent 6ce52befe2
commit a0d029c142

View File

@@ -140,7 +140,8 @@ public class SseServiceImpl implements ISseService {
if (chatModelVo == null) {
throw new IllegalStateException("未找到模型名称:" + chatRequest.getModel());
}
// 自动设置请求参数中的模型名称
chatRequest.setModel(chatModelVo.getModelName());
// 直接返回对应的聊天服务
return chatServiceFactory.getChatService(chatModelVo.getCategory());
} catch (Exception e) {