fix:分布式系统下的websocket通信
This commit is contained in:
@@ -39,9 +39,9 @@ public class AssistantService {
|
||||
message1.put("role", "system");
|
||||
String prompt = "模仿语音助手,对用户的问题给出简短的回答";
|
||||
if ("Chinese".equals(language)) {
|
||||
prompt += "用中文回答";
|
||||
prompt += ",用中文回答";
|
||||
} else if ("English".equals(language)) {
|
||||
prompt += "用英文回答";
|
||||
prompt += ",用英文回答";
|
||||
}
|
||||
message1.put("content", prompt);
|
||||
Map<String, Object> message2 = new HashMap<>();
|
||||
|
||||
Reference in New Issue
Block a user