From 5d41bb4a7970b2fdb52d59c6463284fa5bcf6337 Mon Sep 17 00:00:00 2001 From: Guillaume-gdi Date: Wed, 17 Apr 2024 16:22:41 +0200 Subject: [PATCH] [FIX] web_editor: remove useless params when call IAP OLG Since [this other commit], web_editor can call IAP to generate text via chatGPT. Unfortunately, an unnecessary param (`version`) was given to IAP leading to a warning on the IAP side `generate_content_from_conversation> called ignoring args `. This commit removes this useless param. [this other commit]: https://github.com/odoo/odoo/commit/386a2fdebf429b0318473e596ed9ac0966d9a8b5 Related to task-3383324 closes odoo/odoo#162249 Signed-off-by: Romain Derie (rde) --- addons/web_editor/controllers/main.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/web_editor/controllers/main.py b/addons/web_editor/controllers/main.py index 4bfa1efd0f2..cda5c5c9562 100644 --- a/addons/web_editor/controllers/main.py +++ b/addons/web_editor/controllers/main.py @@ -806,7 +806,6 @@ class Web_Editor(http.Controller): response = iap_tools.iap_jsonrpc(olg_api_endpoint + "/api/olg/1/chat", params={ 'prompt': prompt, 'conversation_history': conversation_history or [], - 'version': release.version, 'database_id': database_id, }, timeout=30) if response['status'] == 'success':