update app_chatgpt disconnect

This commit is contained in:
Chill
2023-02-22 18:59:12 +08:00
parent 4c731b5b18
commit 634e772d3a
5 changed files with 31 additions and 1 deletions

View File

@@ -8,6 +8,8 @@ from odoo import api, fields, models, _
from odoo.exceptions import UserError
import logging
_logger = logging.getLogger(__name__)
class Channel(models.Model):
_inherit = 'mail.channel'
@@ -18,7 +20,7 @@ class Channel(models.Model):
"model": "text-davinci-003",
"prompt": data,
"temperature": 0.9,
"max_tokens": 1000,
"max_tokens": 2000,
"top_p": 1,
"frequency_penalty": 0.0,
"presence_penalty": 0.6,