Class RagflowChatController

java.lang.Object
com.bytedesk.ai.springai.providers.ragflow.RagflowChatController

@RestController @RequestMapping("/api/v1/ragflow") @ConditionalOnProperty(name="bytedesk.ragflow.enabled", havingValue="true", matchIfMissing=false) public class RagflowChatController extends Object
RAGFlow Chat Controller https://ragflow.io/docs/dev/http_api_reference
  • Field Details

  • Constructor Details

    • RagflowChatController

      public RagflowChatController()
  • Method Details

    • createChatCompletion

      @PostMapping("/chats/{chatId}/completions") public org.springframework.http.ResponseEntity<?> createChatCompletion(@PathVariable String chatId, @RequestBody RagflowChatController.RagflowChatRequest request)
      创建聊天完成 - OpenAI 兼容接口
    • createAgentCompletion

      @PostMapping("/agents/{agentId}/completions") public org.springframework.http.ResponseEntity<?> createAgentCompletion(@PathVariable String agentId, @RequestBody RagflowChatController.RagflowChatRequest request)
      创建代理完成 - OpenAI 兼容接口
    • sendChatMessage

      @PostMapping("/chats/{chatId}/message") public org.springframework.http.ResponseEntity<?> sendChatMessage(@PathVariable String chatId, @RequestBody RagflowChatController.RagflowMessageRequest request)
      发送简单聊天消息
    • sendAgentMessage

      @PostMapping("/agents/{agentId}/message") public org.springframework.http.ResponseEntity<?> sendAgentMessage(@PathVariable String agentId, @RequestBody RagflowChatController.RagflowMessageRequest request)
      发送简单代理消息
    • quickChat

      @GetMapping("/chats/{chatId}/quick") public org.springframework.http.ResponseEntity<?> quickChat(@PathVariable String chatId, @RequestParam String content, @RequestParam(required=false,defaultValue="false") Boolean stream)
      快速聊天接口(GET 方式)
    • quickAgentChat

      @GetMapping("/agents/{agentId}/quick") public org.springframework.http.ResponseEntity<?> quickAgentChat(@PathVariable String agentId, @RequestParam String content, @RequestParam(required=false,defaultValue="false") Boolean stream)
      快速代理聊天接口(GET 方式)