|
@@ -46,7 +46,7 @@ import static com.slibra.common.constant.MyConstants.WARNING_DEFAULT_CREATE;
|
|
* 告警相关
|
|
* 告警相关
|
|
*/
|
|
*/
|
|
@RestController
|
|
@RestController
|
|
-@RequestMapping("/test/grpc")
|
|
|
|
|
|
+@RequestMapping("/grpc")
|
|
@Slf4j
|
|
@Slf4j
|
|
public class GRPCController extends BaseController {
|
|
public class GRPCController extends BaseController {
|
|
|
|
|
|
@@ -74,9 +74,9 @@ public class GRPCController extends BaseController {
|
|
* 调⽤大模型决策接口
|
|
* 调⽤大模型决策接口
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @GetMapping(value = "/decisionStream")
|
|
|
|
-// public void decisionStream(HttpServletResponse response, @RequestBody ChatReq chatReq)
|
|
|
|
- public void decisionStream(HttpServletResponse response, ChatReq chatReq)
|
|
|
|
|
|
+ @PostMapping(value = "/decisionStream")
|
|
|
|
+ public void decisionStream(HttpServletResponse response, @RequestBody ChatReq chatReq)
|
|
|
|
+// public void decisionStream(HttpServletResponse response, ChatReq chatReq)
|
|
{
|
|
{
|
|
log.info("进入了调⽤大模型决策接口");
|
|
log.info("进入了调⽤大模型决策接口");
|
|
// StringBuilder sb = new StringBuilder();
|
|
// StringBuilder sb = new StringBuilder();
|
|
@@ -197,9 +197,9 @@ public class GRPCController extends BaseController {
|
|
* RAG+⼤模型的调⽤参数
|
|
* RAG+⼤模型的调⽤参数
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @GetMapping(value = "/inferStreamRag")
|
|
|
|
-// public void inferStreamRag(HttpServletResponse response, @RequestBody ChatReq chatReq) {
|
|
|
|
- public void inferStreamRag(HttpServletResponse response, ChatReq chatReq) {
|
|
|
|
|
|
+ @PostMapping(value = "/inferStreamRag")
|
|
|
|
+ public void inferStreamRag(HttpServletResponse response, @RequestBody ChatReq chatReq) {
|
|
|
|
+// public void inferStreamRag(HttpServletResponse response, ChatReq chatReq) {
|
|
log.info("进入了调⽤RAG+⼤模型的调⽤参数");
|
|
log.info("进入了调⽤RAG+⼤模型的调⽤参数");
|
|
StringBuilder sb = new StringBuilder();
|
|
StringBuilder sb = new StringBuilder();
|
|
String sessionId = chatReq.getSessionId();
|
|
String sessionId = chatReq.getSessionId();
|