Forráskód Böngészése

修改chat/chat --> chat/blocking

183207892172 1 hónapja
szülő
commit
55dbaa188e

+ 2 - 3
java/storlead-knowledge/storlead-knowledge-api/src/main/java/com/storlead/knowledge/api/ChatController.java

@@ -51,7 +51,7 @@ public class ChatController {
      * @return
      * @throws JsonProcessingException
      */
-    @PostMapping("chat")
+    @PostMapping("blocking")
     @ApiOperation("创建聊天")
     public Result<Object> chat(@RequestBody ChatDTO chatDTO) throws JsonProcessingException {
         String url = difyProperties.getBaseUrl() + "chat-messages";
@@ -66,7 +66,6 @@ public class ChatController {
                 log.error("保存聊天记录失败", e);
             }
         }
-
         return result;
     }
 
@@ -77,7 +76,7 @@ public class ChatController {
      * @return
      * @throws IOException
      */
-    @PostMapping(value = "chatStreaming", produces = MediaType.TEXT_EVENT_STREAM_VALUE)
+    @PostMapping(value = "streaming", produces = MediaType.TEXT_EVENT_STREAM_VALUE)
     @ApiOperation("创建聊天 流式返回")
     public SseEmitter chatStreaming(@RequestBody ChatDTO chatDTO) throws IOException {