【app_chatgpt】增加配置可以同步也可以异步处理对话

This commit is contained in:
Chill
2023-03-30 18:32:37 +08:00
parent 54a8f32bd2
commit d9e2488745
5 changed files with 59 additions and 9 deletions

View File

@@ -7,3 +7,7 @@ class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
openapi_context_timeout = fields.Integer(string="上下文连接超时", help="多少秒以内的聊天信息作为上下文继续", config_parameter="app_chatgpt.openapi_context_timeout")
openai_sync_config = fields.Selection([
('sync', 'Synchronous'),
('async', 'Asynchronous')
], string='Sync Config', default='sync', config_parameter="app_chatgpt.openai_sync_config")