Commit e23afb5d authored by yangyw's avatar yangyw

feature: 过滤参数修改为助手名称

parent d2ca1edd
...@@ -566,12 +566,13 @@ public class AppChatCompletionService { ...@@ -566,12 +566,13 @@ public class AppChatCompletionService {
reqBody.put("visitor_biz_id", userPrincipal.getUserId()); reqBody.put("visitor_biz_id", userPrincipal.getUserId());
reqBody.put("session_id", sessionId); reqBody.put("session_id", sessionId);
QaAssistantResponseModel assistant =chatCompletionService.qaAssistantDetail(request.getAssistantId());
JSONObject customVariables = new JSONObject(); JSONObject customVariables = new JSONObject();
customVariables.put("Position", userPrincipal.getPosition()); // customVariables.put("Position", userPrincipal.getPosition());
customVariables.put("Department", userPrincipal.getShopName()); // customVariables.put("Department", userPrincipal.getShopName());
customVariables.put("UserId", userPrincipal.getUserId()); // customVariables.put("UserId", userPrincipal.getUserId());
// reqBody.put("custom_variables", customVariables); customVariables.put("assistant_name", assistant.getName());
reqBody.put("custom_variables", customVariables);
final String[] thoughtContent = {""}; final String[] thoughtContent = {""};
final String[] replyContent = {""}; final String[] replyContent = {""};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment