mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-03-13 20:53:42 +08:00
feat: 自动设置请求参数中的模型名称;
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user