fix: ai conclusion

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-15 14:23:15 +08:00
parent be03377449
commit fc6ff44471
2 changed files with 102 additions and 91 deletions

View File

@@ -651,7 +651,15 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
final res =
await videoIntroController.aiConclusion();
if (res['status']) {
widget.showAiBottomSheet();
if (videoIntroController.modelResult.summary
.isNullOrEmpty &&
videoIntroController
.modelResult.outline ==
null) {
SmartDialog.showToast("当前视频不支持AI视频总结");
} else {
widget.showAiBottomSheet();
}
}
},
child: Image.asset('assets/images/ai.png',