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

This commit is contained in:
likunlong
2025-08-19 15:12:24 +08:00
parent 07cb351807
commit 119483df86

View File

@@ -139,7 +139,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) {