Class ChatClientInfoController

java.lang.Object
com.bytedesk.ai.springai.controller.ChatClientInfoController

@RestController @RequestMapping("/spring/ai/api/v1/chat-clients") @ConditionalOnBean(org.springframework.ai.chat.client.ChatClient.class) public class ChatClientInfoController extends Object
ChatClient信息查询控制器 提供查看所有ChatClient和Primary ChatClient的接口
  • Field Details

  • Constructor Details

    • ChatClientInfoController

      public ChatClientInfoController()
  • Method Details

    • getAllChatClientsInfo

      @GetMapping("/info") public org.springframework.http.ResponseEntity<JsonResult<?>> getAllChatClientsInfo()
      获取所有ChatClient信息 GET http://127.0.0.1:9003/spring/ai/api/v1/chat-clients/info
    • getPrimaryChatClientInfo

      @GetMapping("/primary") public org.springframework.http.ResponseEntity<JsonResult<?>> getPrimaryChatClientInfo()
      获取Primary ChatClient信息 GET http://127.0.0.1:9003/spring/ai/api/v1/chat-clients/primary
    • getRagChatClientInfo

      @GetMapping("/rag") public org.springframework.http.ResponseEntity<JsonResult<?>> getRagChatClientInfo()
      获取RAG使用的ChatClient信息 GET http://127.0.0.1:9003/spring/ai/api/v1/chat-clients/rag
    • testChatClient

      @GetMapping("/test/{provider}") public org.springframework.http.ResponseEntity<JsonResult<?>> testChatClient(@PathVariable String provider)
      测试指定的ChatClient GET http://127.0.0.1:9003/spring/ai/api/v1/chat-clients/test/{provider}
    • testAllChatClients

      @GetMapping("/test-all") public org.springframework.http.ResponseEntity<JsonResult<?>> testAllChatClients()
      测试所有可用的ChatClient GET http://127.0.0.1:9003/spring/ai/api/v1/chat-clients/test-all