fix #I81ORO app_ai_baidu模块

This commit is contained in:
Chill
2023-09-15 18:49:13 +08:00
parent f0cd41c207
commit d1e7265463

View File

@@ -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