类 DeepSeekController

java.lang.Object
plus.hiver.ai.controller.DeepSeekController

@RestController @RequestMapping("/hiver/ai") public class DeepSeekController extends Object

尊重知识产权,CV 请保留版权,海文科技 https://hiver.cc 出品,不允许非法使用,后果自负

作者:
Yazhi Li
  • 构造器详细资料

    • DeepSeekController

      @Autowired public DeepSeekController(org.springframework.ai.openai.OpenAiChatModel chatModel)
  • 方法详细资料

    • chat

      @GetMapping("/chat") public Map chat(@RequestParam("message") String message)
      根据消息直接输出回答
    • chatFlux

      @GetMapping(value="/chatFlux", produces="text/event-stream; charset=UTF-8") public reactor.core.publisher.Flux<org.springframework.ai.chat.model.ChatResponse> chatFlux(@RequestParam("message") String message)
      根据消息采用流式输出,输出回答