|
@@ -136,6 +136,7 @@ public class CrmCustomerAnalyzeServiceImpl extends ServiceImpl<CrmCustomerAnalyz
|
|
|
private static final ObjectMapper mapper = new ObjectMapper();
|
|
private static final ObjectMapper mapper = new ObjectMapper();
|
|
|
@Value("${crm.customer.ai.Key:mygpt-iTUua2CHVd4WGrBbQQGl1HHjyyBAD1KuXARsxHj5eHpLYv5CfnOh8iwVU}")
|
|
@Value("${crm.customer.ai.Key:mygpt-iTUua2CHVd4WGrBbQQGl1HHjyyBAD1KuXARsxHj5eHpLYv5CfnOh8iwVU}")
|
|
|
private String OTHER_KEY;
|
|
private String OTHER_KEY;
|
|
|
|
|
+ private String INTENTION_DEGREE_KEY = "mygpt-hFKftALEp1gmJrdA2Y4lDTj7RgCuH8yXiMkbe3n3UFUa0hX1zHDE43HY";//冯兆峰临时提供,未测试
|
|
|
//ai获取客户画像
|
|
//ai获取客户画像
|
|
|
@Override
|
|
@Override
|
|
|
public String aiGeneratedCustomerPortrait(Long customerId, String dataJson, Long logId) {
|
|
public String aiGeneratedCustomerPortrait(Long customerId, String dataJson, Long logId) {
|
|
@@ -554,7 +555,7 @@ public class CrmCustomerAnalyzeServiceImpl extends ServiceImpl<CrmCustomerAnalyz
|
|
|
requestParam.put("modelType","客户意向度");
|
|
requestParam.put("modelType","客户意向度");
|
|
|
// log.info("请求参数:{}", requestParam);
|
|
// log.info("请求参数:{}", requestParam);
|
|
|
|
|
|
|
|
- R aiResponse = CrmCustomerAiTagUtil.callAiService(requestParam, chatId,OTHER_KEY);
|
|
|
|
|
|
|
+ R aiResponse = CrmCustomerAiTagUtil.callAiService(requestParam, chatId,INTENTION_DEGREE_KEY);
|
|
|
// JSONObject root = JSON.parseObject(JSONUtil.toJsonStr(aiResponse));
|
|
// JSONObject root = JSON.parseObject(JSONUtil.toJsonStr(aiResponse));
|
|
|
// System.out.println(aiResponse);
|
|
// System.out.println(aiResponse);
|
|
|
// 获取 data.responseData
|
|
// 获取 data.responseData
|