mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix res
This commit is contained in:
@@ -77,9 +77,6 @@ class Channel(models.Model):
|
|||||||
if 'choices' in res:
|
if 'choices' in res:
|
||||||
res = '\n'.join([x['text'] for x in res['choices']])
|
res = '\n'.join([x['text'] for x in res['choices']])
|
||||||
return res
|
return res
|
||||||
elif provider == 'azure':
|
|
||||||
res = gpt_id.get_openai(data)
|
|
||||||
return res
|
|
||||||
|
|
||||||
return "获取结果超时,请重新跟我聊聊。"
|
return "获取结果超时,请重新跟我聊聊。"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user