简历解析业务逻辑处理

This commit is contained in:
2025-11-30 17:54:39 +08:00
parent 1bbd4294a8
commit 600ab3a248
17 changed files with 326 additions and 55 deletions

View File

@@ -186,7 +186,8 @@ public class ChatWebSocketMultipleHandler {
mapEntity.put("content", StrUtil.format(content, cacheResultText));
cacheMsgMapData1.put(session.getId(), JSONUtil.toJsonStr(list));
}
Long replyNums = cacheQuestionNum.get(session.getId());
cacheQuestionNum.put(session.getId(), replyNums+1);
//验证是否结速
Boolean isEndFlag = checkIsEnd(session);
if(isEndFlag){
@@ -633,6 +634,7 @@ public class ChatWebSocketMultipleHandler {
/**
* 验证面试是否结束
* 记录回答问题的次数
* @param session
* @return
*/
@@ -640,7 +642,8 @@ public class ChatWebSocketMultipleHandler {
Long replyNums = cacheQuestionNum.get(session.getId());
//回答次数大于等于5就直接结束面试
Boolean flag = true;
if(replyNums >= 5){
if(replyNums.longValue() >= 5L){
flag = false;
//获取问答评分记录
String promptJson = cacheMsgMapData1.get(session.getId());
//根据模型获取评分
@@ -668,9 +671,6 @@ public class ChatWebSocketMultipleHandler {
e.printStackTrace();
}
}
flag = false;
}else{
cacheQuestionNum.put(session.getId(), replyNums+1);
}
return flag;
}

File diff suppressed because one or more lines are too long

View File

@@ -172,6 +172,7 @@ chatGpt:
model: ft:gpt-3.5-turbo-0125:vetti:interview-unified:CaGyCXOr
modelQuestion: gpt-4o-mini
modelCV: ft:gpt-3.5-turbo-0125:vetti:vetti-resume-full:CYT0C8JG
modelJxCv: gpt-4o-mini
role: system
http:

View File

@@ -172,6 +172,7 @@ chatGpt:
model: ft:gpt-3.5-turbo-0125:vetti:interview-unified:CaGyCXOr
modelQuestion: gpt-4o-mini
modelCV: ft:gpt-3.5-turbo-0125:vetti:vetti-resume-full:CYT0C8JG
modelJxCv: gpt-4o-mini
role: system
http: