Commit 93e0f0a3 authored by yangyw's avatar yangyw

Merge branch 'refs/heads/feature/20241217_收尾' into sandbox

parents 43de5365 e23afb5d
......@@ -574,12 +574,13 @@ public class AppChatCompletionService {
reqBody.put("visitor_biz_id", userPrincipal.getUserId());
reqBody.put("session_id", sessionId);
QaAssistantResponseModel assistant =chatCompletionService.qaAssistantDetail(request.getAssistantId());
JSONObject customVariables = new JSONObject();
customVariables.put("Position", userPrincipal.getPosition());
customVariables.put("Department", userPrincipal.getShopName());
customVariables.put("UserId", userPrincipal.getUserId());
// reqBody.put("custom_variables", customVariables);
// customVariables.put("Position", userPrincipal.getPosition());
// customVariables.put("Department", userPrincipal.getShopName());
// customVariables.put("UserId", userPrincipal.getUserId());
customVariables.put("assistant_name", assistant.getName());
reqBody.put("custom_variables", customVariables);
final String[] thoughtContent = {""};
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