新增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.GsonBuilder;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
|
||||
@@ -33,8 +34,8 @@ import java.util.concurrent.Executors;
|
||||
public class ChatRobotServiceImpl implements ChatRobotService {
|
||||
|
||||
// @Value("")
|
||||
String chatStreamUrl = "http://127.0.0.1:6789/api/chat_stream";
|
||||
String chatBufferFlushUrl = "http://127.0.0.1:6789/api/chat_flush";
|
||||
String chatStreamUrl = "http://18.167.251.121:6789/api/chat_stream";
|
||||
String chatBufferFlushUrl = "http://18.167.251.121:6789/api/chat_flush";
|
||||
|
||||
RestTemplate restTemplate = new RestTemplate();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user