LargeModelClient.java
1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.bs.reception.feign;
import com.bs.common.core.domain.AjaxResult;
import com.bs.common.core.domain.FileEntity;
import com.bs.reception.service.recordmodelcall.model.BusinessResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;
@FeignClient(name = "linkwe-large-model", contextId = "LargeModelClient", path = "/large-model")
public interface LargeModelClient {
/**
* 推送大模型处理
*
* @param businessType 业务类型
* @param content 文件内容
*
* @return
*/
@PostMapping(value = "/api/inspection/llm/launch_task", consumes = MediaType.APPLICATION_JSON_VALUE)
public BusinessResponse launchTask(@RequestParam("businessType") Integer businessType, @RequestBody String content);
/**
* 获取大模型处理结果
*
* @param businessType 业务类型
*
* @return
*/
@GetMapping(value = "/api/inspection/llm/get_task_result", consumes = MediaType.APPLICATION_JSON_VALUE)
public BusinessResponse getTaskResult(@RequestParam("businessId") String businessId);
}