dev-chenjiajian #1
@ -18,4 +18,7 @@ public class TestChildCharacterResp {
|
|||||||
|
|
||||||
@Schema(description = "性格类型")
|
@Schema(description = "性格类型")
|
||||||
private String characterType;
|
private String characterType;
|
||||||
|
|
||||||
|
@Schema(description = "星座")
|
||||||
|
private String constellation;
|
||||||
}
|
}
|
||||||
@ -184,6 +184,7 @@ public class AppParentAgentActivityService implements IAppParentAgentActivitySer
|
|||||||
// 获取AI返回的内容
|
// 获取AI返回的内容
|
||||||
String content = response.getChoices().get(0).getMessage().getContent();
|
String content = response.getChoices().get(0).getMessage().getContent();
|
||||||
result = parseAiResponse(content);
|
result = parseAiResponse(content);
|
||||||
|
result.setConstellation(request.getConstellation());
|
||||||
|
|
||||||
// 如果AI调用成功则将测试结果保存到数据库中
|
// 如果AI调用成功则将测试结果保存到数据库中
|
||||||
MpTestChildCharacterEntity entity = getCharacterEntity(request, parentId, result);
|
MpTestChildCharacterEntity entity = getCharacterEntity(request, parentId, result);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user