mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update misc
This commit is contained in:
@@ -17,11 +17,11 @@ class AiRobot(models.Model):
|
||||
|
||||
provider = fields.Selection(
|
||||
selection_add=[('google', 'Google Ai')],
|
||||
ondelete={'google': 'cascade'}
|
||||
ondelete={'google': 'set default'}
|
||||
),
|
||||
set_ai_model = fields.Selection(
|
||||
selection_add=[('google-bard', 'Google Bard')],
|
||||
ondelete={'google-bard': 'cascade'})
|
||||
ondelete={'google-bard': 'set default'})
|
||||
|
||||
@api.onchange('provider')
|
||||
def _onchange_provider(self):
|
||||
|
||||
@@ -22,8 +22,7 @@ class AiRobot(models.Model):
|
||||
provider = fields.Selection(string="AI Provider", selection=[('openai', 'OpenAI'), ('azure', 'Azure')],
|
||||
required=True, default='openai', change_default=True)
|
||||
# update ai_robot set ai_model=set_ai_model
|
||||
ai_model = fields.Char(string="AI Model", required=True, default='auto', help='Customize input', ondelete=None)
|
||||
|
||||
ai_model = fields.Char(string="AI Model", required=True, default='auto', help='Customize input')
|
||||
set_ai_model = fields.Selection(string="Quick Set Model", selection=[
|
||||
('gpt-3.5-turbo-0613', 'gpt-3.5-turbo-0613(Default and Latest)'),
|
||||
('gpt-3.5-turbo-16k-0613', 'gpt-3.5-turbo-16k-0613(Big text)'),
|
||||
|
||||
Reference in New Issue
Block a user