From 199025663a4f2ab620a58e71c6993202da788760 Mon Sep 17 00:00:00 2001 From: Chill Date: Thu, 25 May 2023 14:10:30 +0800 Subject: [PATCH] fix get_ai_pre --- app_chatgpt/models/ai_robot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app_chatgpt/models/ai_robot.py b/app_chatgpt/models/ai_robot.py index 1716cec8..17d3155a 100644 --- a/app_chatgpt/models/ai_robot.py +++ b/app_chatgpt/models/ai_robot.py @@ -142,10 +142,10 @@ GPT-3 A set of models that can understand and generate natural language res_pre = self.get_ai_pre(data, author_id, answer_id, param) if res_pre: # 有错误内容,则返回上级内容及 is_ai为假 - return res_pre, False + return res_pre, {}, False if not hasattr(self, 'get_%s' % self.provider): res = _('No robot provider found') - return res, False + return res, {}, False res = getattr(self, 'get_%s' % self.provider)(data, author_id, answer_id, param) # 后置勾子,返回处理后的内容