@ -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',
@ -5,3 +5,8 @@
#### ADD
- Initial commit for Odoo ChatGPT Connector
#### 12.01.2024
#### Version 16.0.1.0.2
#### Fix
- Bug fixed
@ -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 = $('<textarea>');
$('body').append(tempTextarea);
tempTextarea.val(textToCopy).select();
document.execCommand('copy');
tempTextarea.remove();
});