|
@@ -10,10 +10,7 @@ import com.qmth.ops.biz.domain.LlmModel;
|
|
|
import com.qmth.ops.biz.domain.LlmOrgConfig;
|
|
|
import com.qmth.ops.biz.domain.Org;
|
|
|
import com.qmth.ops.biz.query.LlmOrgConfigQuery;
|
|
|
-import com.qmth.ops.biz.service.LlmModelService;
|
|
|
-import com.qmth.ops.biz.service.LlmOrgConfigService;
|
|
|
-import com.qmth.ops.biz.service.LlmSupplierService;
|
|
|
-import com.qmth.ops.biz.service.OrgService;
|
|
|
+import com.qmth.ops.biz.service.*;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestAttribute;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -34,6 +31,9 @@ public class LlmOrgConfigController {
|
|
|
@Resource
|
|
|
private LlmModelService llmModelService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private LlmPromptTemplateService llmPromptTemplateService;
|
|
|
+
|
|
|
@Resource
|
|
|
private LlmOrgConfigService llmOrgConfigService;
|
|
|
|
|
@@ -42,7 +42,8 @@ public class LlmOrgConfigController {
|
|
|
return llmOrgConfigService.query(query).convert(config -> {
|
|
|
LlmModel model = llmModelService.getById(config.getModelId());
|
|
|
Org org = orgService.getById(config.getOrgId());
|
|
|
- return new LlmOrgConfigVO(llmSupplierService.getById(model.getSupplierId()), model, new OrgVO(org), config);
|
|
|
+ return new LlmOrgConfigVO(llmSupplierService.getById(model.getSupplierId()), model,
|
|
|
+ llmPromptTemplateService.findById(config.getPromptId()), new OrgVO(org), config);
|
|
|
});
|
|
|
}
|
|
|
|