新增chat Robot 接口服务

This commit is contained in:
zhouchengrong
2023-07-25 19:50:27 +08:00
parent 68146d62f4
commit b0649b4c09
3 changed files with 3 additions and 2 deletions

View File

@@ -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();