[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 <version=X>`. 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) <rde@odoo.com>
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user