mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-06 17:36:47 +08:00
fix: 加回注解
This commit is contained in:
@@ -114,6 +114,7 @@ public class CaseAiChatServiceImpl implements ICaseAiChatService {
|
|||||||
private final Map<String, EventSource> conversationEventSourceMap = new ConcurrentHashMap<>();
|
private final Map<String, EventSource> conversationEventSourceMap = new ConcurrentHashMap<>();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@Transactional
|
||||||
public SseEmitter chat(CaseAiChatDto caseAiChatDto, CurrentUser currentUser) {
|
public SseEmitter chat(CaseAiChatDto caseAiChatDto, CurrentUser currentUser) {
|
||||||
// 创建SSE响应器
|
// 创建SSE响应器
|
||||||
SseEmitter sseEmitter = new SseEmitter();
|
SseEmitter sseEmitter = new SseEmitter();
|
||||||
@@ -394,7 +395,7 @@ public class CaseAiChatServiceImpl implements ICaseAiChatService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
// @Transactional
|
@Transactional
|
||||||
public CaseAiConversations createNewConversation(String userId, String conversationName) {
|
public CaseAiConversations createNewConversation(String userId, String conversationName) {
|
||||||
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
|
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
|
||||||
String url = caseAiProperties.getBaseUrl() + "/apigateway/knowledge/v1/conversation";
|
String url = caseAiProperties.getBaseUrl() + "/apigateway/knowledge/v1/conversation";
|
||||||
|
|||||||
Reference in New Issue
Block a user