mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
prepare #I6N5DX app_chatgpt增加对4.0版本接口的支持
This commit is contained in:
@@ -12,6 +12,7 @@ class AiRobot(models.Model):
|
|||||||
name = fields.Char(string='Name', translate=True)
|
name = fields.Char(string='Name', translate=True)
|
||||||
provider = fields.Selection(string="AI Provider", selection=[('openai', 'OpenAI')], required=True, default='openai')
|
provider = fields.Selection(string="AI Provider", selection=[('openai', 'OpenAI')], required=True, default='openai')
|
||||||
ai_model = fields.Selection(string="AI Model", selection=[
|
ai_model = fields.Selection(string="AI Model", selection=[
|
||||||
|
('gpt-4', 'Chatgpt 4'),
|
||||||
('gpt-3.5-turbo', 'Chatgpt 3.5 Turbo'),
|
('gpt-3.5-turbo', 'Chatgpt 3.5 Turbo'),
|
||||||
('gpt-3.5-turbo-0301', 'Chatgpt 3.5 Turbo on 20230301'),
|
('gpt-3.5-turbo-0301', 'Chatgpt 3.5 Turbo on 20230301'),
|
||||||
('text-davinci-003', 'Chatgpt 3 Davinci'),
|
('text-davinci-003', 'Chatgpt 3 Davinci'),
|
||||||
|
|||||||
Reference in New Issue
Block a user