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