简历读取基础逻辑添加以及用户语音配置信息字段添加
This commit is contained in:
@@ -179,7 +179,7 @@ public class ChatWebSocketHandler {
|
||||
}
|
||||
Map<String,String> mapEntity = new HashMap<>();
|
||||
mapEntity.put("role","system");
|
||||
mapEntity.put("content","You are an interviewer. Generate follow-up questions based on Construction Labourer candidate responses.Return Only One Question");
|
||||
mapEntity.put("content","You are an interviewer. Generate follow-up questions based on Construction Labourer candidate responses.Only return one question and do not repeat the previously returned questions \\n MPORTANT: Do not ask the same question again if the answer is incorrect");
|
||||
List<Map<String,String>> list = new LinkedList();
|
||||
list.add(mapEntity);
|
||||
promptJson = JSONUtil.toJsonStr(list);
|
||||
@@ -313,7 +313,7 @@ public class ChatWebSocketHandler {
|
||||
}
|
||||
log.info("结束AI提示词为:{}",promptJson);
|
||||
ChatGPTClient gptClient = SpringUtils.getBean(ChatGPTClient.class);
|
||||
String resultMsg = gptClient.handleAiChat(promptJson);
|
||||
String resultMsg = gptClient.handleAiChat(promptJson,"QA");
|
||||
Map<String, String> resultEntity = new HashMap<>();
|
||||
resultEntity.put("msg", resultMsg);
|
||||
resultEntity.put("dataType","score");
|
||||
|
||||
@@ -59,7 +59,7 @@ public class AiCommonController extends BaseController
|
||||
@GetMapping("/handleAiChat")
|
||||
public AjaxResult handleAiChat(@RequestParam String text)
|
||||
{
|
||||
String resultMsg = chatGPTClient.handleAiChat(text);
|
||||
String resultMsg = chatGPTClient.handleAiChat(text,"QA");
|
||||
return AjaxResult.success(resultMsg);
|
||||
}
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ public class SysProfileController extends BaseController
|
||||
/**
|
||||
* 修改用户
|
||||
*/
|
||||
@ApiOperation("个人信息完善")
|
||||
@ApiOperation("个人信息完善(按照步骤完善信息)")
|
||||
@Log(title = "个人信息完善", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/completeInfo")
|
||||
public R personalInfoProfile(@RequestBody SysUser user)
|
||||
@@ -107,12 +107,25 @@ public class SysProfileController extends BaseController
|
||||
currentUser.setSteps(user.getSteps());
|
||||
if (userService.updateUserProfile(currentUser) > 0)
|
||||
{
|
||||
loginUser.setUser(currentUser);
|
||||
// 更新缓存用户信息
|
||||
tokenService.setLoginUser(loginUser);
|
||||
}
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 个人信息修改
|
||||
*/
|
||||
@ApiOperation("个人信息修改")
|
||||
@Log(title = "个人信息修改", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/updatePersonalInfo")
|
||||
public R updatePersonalInfoProfile(@RequestBody SysUser user)
|
||||
{
|
||||
userService.updateUserProfile(user);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改用户
|
||||
|
||||
@@ -169,7 +169,8 @@ whisper:
|
||||
chatGpt:
|
||||
apiKey: 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
|
||||
apiUrl: https://api.openai.com/v1/chat/completions
|
||||
model: ft:gpt-3.5-turbo-0125:vetti:construction-labourer-test:CWKBNvE2
|
||||
model: ft:gpt-3.5-turbo-0125:vetti:construction-labourer-test:CTIvLD5n
|
||||
modelCV: ft:gpt-3.5-turbo-0125:vetti:vetti-resume-test:CWPinJQq
|
||||
role: system
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user