diff --git a/odoo_chatgpt_connector/__manifest__.py b/odoo_chatgpt_connector/__manifest__.py index 8c956117e..71d17a071 100644 --- a/odoo_chatgpt_connector/__manifest__.py +++ b/odoo_chatgpt_connector/__manifest__.py @@ -23,7 +23,7 @@ { 'name': 'Odoo ChatGPT Connector', - 'version': '16.0.1.0.1', + 'version': '16.0.1.0.2', 'summary': 'Odoo ChatGPT Connector', 'description': 'Allows the application to leverage the capabilities of the GPT language model to generate human-like responses,Odoo ChatGPT Connector,Odoo ChatGPT,ChatGPT, chatgpt odoo connector, chatgpt', 'author': 'Cybrosys Techno Solutions', diff --git a/odoo_chatgpt_connector/doc/RELEASE_NOTES.md b/odoo_chatgpt_connector/doc/RELEASE_NOTES.md index c574d70ea..6b7c43fc0 100644 --- a/odoo_chatgpt_connector/doc/RELEASE_NOTES.md +++ b/odoo_chatgpt_connector/doc/RELEASE_NOTES.md @@ -5,3 +5,8 @@ #### ADD - Initial commit for Odoo ChatGPT Connector + +#### 12.01.2024 +#### Version 16.0.1.0.2 +#### Fix +- Bug fixed diff --git a/odoo_chatgpt_connector/static/src/js/submit_request.js b/odoo_chatgpt_connector/static/src/js/submit_request.js index bda5d9e2d..7acd37b5a 100644 --- a/odoo_chatgpt_connector/static/src/js/submit_request.js +++ b/odoo_chatgpt_connector/static/src/js/submit_request.js @@ -39,7 +39,7 @@ odoo.define('odoo_chatgpt_connector.chatgpt_search', function(require) { myHeaders.append("Authorization", "Bearer " + this.api_key); var raw = JSON.stringify({ - "model": "text-davinci-003", + "model": "gpt-3.5-turbo-instruct", "prompt": question, "temperature": 0, "max_tokens": 1000, @@ -66,8 +66,12 @@ odoo.define('odoo_chatgpt_connector.chatgpt_search', function(require) { }, /*For copy the Answer to the clipboard*/ copy: function(event) { - document.querySelector("textarea").select(); + var textToCopy = $("#result_area").val(); + var tempTextarea = $('