package com.template.api;

import com.template.model.result.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

import java.io.IOException;


@RequestMapping("/api/deepseek")
@Api(tags = {"DeepseekControllerAPI"}, value = "deepseek")
public interface DeepseekControllerAPI {
    @GetMapping(value = "/askDeepSeek")
    @ApiOperation(value = "SSE流式获取对话数据", notes = "获取对话数据", httpMethod = "GET")
    SseEmitter askDeepSeek(@RequestParam String userMessage,String uniqueStr) throws IOException;

    @GetMapping(value = "/askNDeepSeek")
    @ApiOperation(value = "SSE流式获取对话数据", notes = "获取对话数据", httpMethod = "GET")
    CommonResult askNDeepSeek(@RequestParam String userMessage) throws IOException;

}
