From d1e7265463d98c7c69c1e16db5d203af0951a537 Mon Sep 17 00:00:00 2001 From: Chill Date: Fri, 15 Sep 2023 18:49:13 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#I81ORO=20app=5Fai=5Fbaidu=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_chatgpt/models/ai_robot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app_chatgpt/models/ai_robot.py b/app_chatgpt/models/ai_robot.py index 314ad203..1d0f047e 100644 --- a/app_chatgpt/models/ai_robot.py +++ b/app_chatgpt/models/ai_robot.py @@ -208,6 +208,10 @@ GPT-3 A set of models that can understand and generate natural language # ali 格式 usage = res['usage'] content = res['output']['text'] + elif self.provider == 'baidu': + # baidu 格式 + usage = res['usage'] + content = res['result'] else: usage = False content = res