新增chat Robot 接口服务
This commit is contained in:
@@ -9,6 +9,7 @@ import com.ai.da.service.ChatRobotService;
|
|||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.web.client.RestTemplate;
|
import org.springframework.web.client.RestTemplate;
|
||||||
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
|
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
|
||||||
@@ -33,8 +34,8 @@ import java.util.concurrent.Executors;
|
|||||||
public class ChatRobotServiceImpl implements ChatRobotService {
|
public class ChatRobotServiceImpl implements ChatRobotService {
|
||||||
|
|
||||||
// @Value("")
|
// @Value("")
|
||||||
String chatStreamUrl = "http://127.0.0.1:6789/api/chat_stream";
|
String chatStreamUrl = "http://18.167.251.121:6789/api/chat_stream";
|
||||||
String chatBufferFlushUrl = "http://127.0.0.1:6789/api/chat_flush";
|
String chatBufferFlushUrl = "http://18.167.251.121:6789/api/chat_flush";
|
||||||
|
|
||||||
RestTemplate restTemplate = new RestTemplate();
|
RestTemplate restTemplate = new RestTemplate();
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user