|
@@ -95,11 +95,7 @@ public class KimiChatServiceImpl extends ServiceImpl<KimiChatMapper, KimiChat> i
|
|
|
log.error("解析失败 -- ",resp);
|
|
|
return;
|
|
|
}
|
|
|
- if(kimiResponse == null){
|
|
|
- log.error("解析失败 -- ",resp);
|
|
|
- return;
|
|
|
- }
|
|
|
- if(kimiResponse.getChoices() == null || kimiResponse.getChoices().size() == 0){
|
|
|
+
|
|
|
if (kimiResponse == null || kimiResponse.getChoices() == null || kimiResponse.getChoices().isEmpty()){
|
|
|
return;
|
|
|
}
|