Commit 32eae563 authored by luojun's avatar luojun

deepseek优化

parent b6fb971e
......@@ -207,12 +207,12 @@ public class VoiceWebSocketServer {
chatgptRoleRecordsService.saveContent(analysisData.getData(),ScreenEnum.getByUserName(memberId.split("__")[1]) ,Integer.valueOf(webSocketModel.getSessionId()),10001,0,analysisData.getDataList()!=null?1:0,analysisData.getDataList());
}else if (analysisData.getType().equals(2)){
//左边内容
sendMessage(session,JSONObject.toJSONString(WebSocketModel.createChartMode("reply","text",analysisData.getData(),StringUtils.isNotBlank(analysisData.getFile()) ? "http://newscreen.justh5.com/bg/" + analysisData.getFile() : null)));
sendMessage(session,JSONObject.toJSONString(WebSocketModel.createChartMode("reply","text",analysisData.getData(),StringUtils.isNotBlank(analysisData.getFile()) ? "https://newscreen.justh5.com/bg/" + analysisData.getFile() : null)));
//结束标识
sendMessage(session,JSONObject.toJSONString(WebSocketModel.createChartMode("done","chart",analysisData.getData(),StringUtils.isNotBlank(analysisData.getFile()) ? "http://newscreen.justh5.com/bg/" + analysisData.getFile() : null)));
sendMessage(session,JSONObject.toJSONString(WebSocketModel.createChartMode("done","chart",analysisData.getData(),StringUtils.isNotBlank(analysisData.getFile()) ? "https://newscreen.justh5.com/bg/" + analysisData.getFile() : null)));
//存储会话记录
chatgptRoleRecordsService.saveContent(analysisData.getData(),ScreenEnum.getByUserName(memberId.split("__")[1]),Integer.valueOf(webSocketModel.getSessionId()),10001,0,StringUtils.isNotBlank(analysisData.getFile())?2:0,StringUtils.isNotBlank(analysisData.getFile())?"http://newscreen.justh5.com/bg/" + analysisData.getFile():null);
chatgptRoleRecordsService.saveContent(analysisData.getData(),ScreenEnum.getByUserName(memberId.split("__")[1]),Integer.valueOf(webSocketModel.getSessionId()),10001,0,StringUtils.isNotBlank(analysisData.getFile())?2:0,StringUtils.isNotBlank(analysisData.getFile())?"https://newscreen.justh5.com/bg/" + analysisData.getFile():null);
}
}
......
......@@ -21,12 +21,12 @@ import java.util.List;
public class PythonOpenApiClientImpl implements PythonOpenApiClient {
@Override
public PythonResp getAnalysisData(PythonApiReq pythonApiReq) {
return JSONObject.parseObject(HttpUtil.post("http://py.justh5.com/aiapi/sqlqa/", pythonApiReq),PythonResp.class);
return JSONObject.parseObject(HttpUtil.post("https://py.justh5.com/aiapi/sqlqa/", pythonApiReq),PythonResp.class);
}
@Override
public List<String> getSimilarProblems(PythonApiReq pythonApiReq) {
String post = HttpUtil.post("http://py.justh5.com/aiapi/relatedIssues", pythonApiReq);
String post = HttpUtil.post("https://py.justh5.com/aiapi/relatedIssues", pythonApiReq);
return JSONObject.parseArray(post,String.class);
}
}
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