diff --git a/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/controller/ChatbotController.java b/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/controller/ChatbotController.java index 667439c9..8e3a2e67 100644 --- a/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/controller/ChatbotController.java +++ b/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/controller/ChatbotController.java @@ -51,14 +51,14 @@ public class ChatbotController { @Resource private ChatbotService chatbotService; - @Operation(summary = "new thread", description = "Create a chat threads") + @Operation(summary = "new thread", description = "Create a chat thread") @PostMapping("/threads") public ResponseEntity createChatThread(@RequestBody ChatbotThreadReq chatbotThreadReq) { ChatThreadDTO chatThreadDTO = ChatThreadConverter.INSTANCE.fromReq2DTO(chatbotThreadReq); return ResponseEntity.success(chatbotService.createChatThread(chatThreadDTO)); } - @Operation(summary = "update thread", description = "Update a chat threads") + @Operation(summary = "update thread", description = "Update a chat thread") @PutMapping("/threads/{threadId}") public ResponseEntity updateChatThread( @PathVariable Long threadId, @RequestBody ChatbotThreadReq chatbotThreadReq) { @@ -67,13 +67,13 @@ public ResponseEntity updateChatThread( return ResponseEntity.success(chatbotService.updateChatThread(chatThreadDTO)); } - @Operation(summary = "delete thread", description = "Delete a chat threads") + @Operation(summary = "delete thread", description = "Delete a chat thread") @DeleteMapping("/threads/{threadId}") public ResponseEntity deleteChatThread(@PathVariable Long threadId) { return ResponseEntity.success(chatbotService.deleteChatThread(threadId)); } - @Operation(summary = "get thread", description = "Get a chat threads") + @Operation(summary = "get thread", description = "Get a chat thread") @GetMapping("/threads/{threadId}") public ResponseEntity getChatThread(@PathVariable Long threadId) { return ResponseEntity.success(chatbotService.getChatThread(threadId)); diff --git a/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/controller/LLMConfigController.java b/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/controller/LLMConfigController.java index 5effdf22..51f24a00 100644 --- a/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/controller/LLMConfigController.java +++ b/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/controller/LLMConfigController.java @@ -68,21 +68,21 @@ public ResponseEntity> authorizedPlatforms() { return ResponseEntity.success(llmConfigService.authorizedPlatforms()); } - @Operation(summary = "test auth platform", description = "Test authorized platforms") + @Operation(summary = "test auth platform", description = "Test authorized platform") @PostMapping("/auth-platforms/test") public ResponseEntity testAuthorizedPlatform(@RequestBody AuthPlatformReq authPlatformReq) { AuthPlatformDTO authPlatformDTO = AuthPlatformConverter.INSTANCE.fromReq2DTO(authPlatformReq); return ResponseEntity.success(llmConfigService.testAuthorizedPlatform(authPlatformDTO)); } - @Operation(summary = "add auth platform", description = "Add authorized platforms") + @Operation(summary = "add auth platform", description = "Add authorized platform") @PostMapping("/auth-platforms") public ResponseEntity addAuthorizedPlatform(@RequestBody AuthPlatformReq authPlatformReq) { AuthPlatformDTO authPlatformDTO = AuthPlatformConverter.INSTANCE.fromReq2DTO(authPlatformReq); return ResponseEntity.success(llmConfigService.addAuthorizedPlatform(authPlatformDTO)); } - @Operation(summary = "update auth platform", description = "Update authorized platforms") + @Operation(summary = "update auth platform", description = "Update authorized platform") @PutMapping("/auth-platforms/{authId}") public ResponseEntity updateAuthorizedPlatform( @PathVariable Long authId, @RequestBody AuthPlatformReq authPlatformReq) { @@ -91,25 +91,25 @@ public ResponseEntity updateAuthorizedPlatform( return ResponseEntity.success(llmConfigService.updateAuthorizedPlatform(authPlatformDTO)); } - @Operation(summary = "get auth platform", description = "Get authorized platforms") + @Operation(summary = "get auth platform", description = "Get a authorized platform") @GetMapping("/auth-platforms/{authId}") public ResponseEntity getAuthorizedPlatform(@PathVariable Long authId) { return ResponseEntity.success(llmConfigService.getAuthorizedPlatform(authId)); } - @Operation(summary = "delete auth platform", description = "Delete authorized platforms") + @Operation(summary = "delete auth platform", description = "Delete a authorized platform") @DeleteMapping("/auth-platforms/{authId}") public ResponseEntity deleteAuthorizedPlatform(@PathVariable Long authId) { return ResponseEntity.success(llmConfigService.deleteAuthorizedPlatform(authId)); } - @Operation(summary = "activate auth platform", description = "Activate authorized platforms") + @Operation(summary = "activate auth platform", description = "Activate authorized platform") @PostMapping("/auth-platforms/{authId}/activate") public ResponseEntity activateAuthorizedPlatform(@PathVariable Long authId) { return ResponseEntity.success(llmConfigService.activateAuthorizedPlatform(authId)); } - @Operation(summary = "deactivate auth platform", description = "Deactivate authorized platforms") + @Operation(summary = "deactivate auth platform", description = "Deactivate authorized platform") @PostMapping("/auth-platforms/{authId}/deactivate") public ResponseEntity deactivateAuthorizedPlatform(@PathVariable Long authId) { return ResponseEntity.success(llmConfigService.deactivateAuthorizedPlatform(authId));