From 8e0f1e08acde6981db0ae2ca63d4c61ff5f0efdf Mon Sep 17 00:00:00 2001 From: Antoine Guenet Date: Mon, 6 Nov 2023 09:41:01 +0100 Subject: [PATCH] [IMP] web_editor: reduce the timeout for chatgpt calls The timeout for calls to the OLG API in the editor was set to 300 seconds, which is far too long for a chatbot. This reduces it to 30s. closes odoo/odoo#141135 Signed-off-by: Nicolas Bayet (nby) --- addons/web_editor/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/controllers/main.py b/addons/web_editor/controllers/main.py index da0c8bca85f..df43054847d 100644 --- a/addons/web_editor/controllers/main.py +++ b/addons/web_editor/controllers/main.py @@ -774,7 +774,7 @@ class Web_Editor(http.Controller): 'prompt': prompt, 'conversation_history': conversation_history or [], 'version': release.version, - }, timeout=300) + }, timeout=30) if response['status'] == 'success': return response['content'] elif response['status'] == 'error_prompt_too_long':