mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update css
This commit is contained in:
@@ -102,7 +102,7 @@ msgid ""
|
||||
msgstr "停止标识。表示聊天机器人停止生成回复的条件,可以是一段文本或者一个列表,当聊天机器人生成的回复中包含了这个条件,就会停止继续生成回复。"
|
||||
|
||||
#. module: app_chatgpt
|
||||
#: model:ir.model.fields,help:app_chatgpt.field_ai_robot__ai_model
|
||||
#: model:ir.model.fields,help:app_chatgpt.field_ai_robot__set_ai_model
|
||||
msgid ""
|
||||
"\n"
|
||||
"GPT-4: Can understand Image, generate natural language or code.\n"
|
||||
@@ -989,37 +989,37 @@ msgid "ChatGpt Training"
|
||||
msgstr "ChatGpt训练"
|
||||
|
||||
#. module: app_chatgpt
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__ai_model__code-davinci-002
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__set_ai_model__code-davinci-002
|
||||
msgid "Chatgpt 2 Code Optimized"
|
||||
msgstr ""
|
||||
|
||||
#. module: app_chatgpt
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__ai_model__text-davinci-002
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__set_ai_model__text-davinci-002
|
||||
msgid "Chatgpt 2 Davinci"
|
||||
msgstr ""
|
||||
|
||||
#. module: app_chatgpt
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__ai_model__text-davinci-003
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__set_ai_model__text-davinci-003
|
||||
msgid "Chatgpt 3 Davinci"
|
||||
msgstr ""
|
||||
|
||||
#. module: app_chatgpt
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__ai_model__gpt-3_5-turbo
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__set_ai_model__gpt-3_5-turbo
|
||||
msgid "Chatgpt 3.5 Turbo"
|
||||
msgstr ""
|
||||
|
||||
#. module: app_chatgpt
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__ai_model__gpt-3_5-turbo-0301
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__set_ai_model__gpt-3_5-turbo-0301
|
||||
msgid "Chatgpt 3.5 Turbo on 20230301"
|
||||
msgstr ""
|
||||
|
||||
#. module: app_chatgpt
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__ai_model__gpt-4
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__set_ai_model__gpt-4
|
||||
msgid "Chatgpt 4"
|
||||
msgstr ""
|
||||
|
||||
#. module: app_chatgpt
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__ai_model__gpt-4-32k
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__set_ai_model__gpt-4-32k
|
||||
msgid "Chatgpt 4 32k"
|
||||
msgstr ""
|
||||
|
||||
@@ -1114,7 +1114,7 @@ msgid "DVD"
|
||||
msgstr ""
|
||||
|
||||
#. module: app_chatgpt
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__ai_model__dall-e2
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__set_ai_model__dall-e2
|
||||
msgid "Dall-E Image"
|
||||
msgstr ""
|
||||
|
||||
@@ -11552,12 +11552,12 @@ msgid "gorilla"
|
||||
msgstr ""
|
||||
|
||||
#. module: app_chatgpt
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__ai_model__gpt-3_5-turbo-0613
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__set_ai_model__gpt-3_5-turbo-0613
|
||||
msgid "gpt-3.5-turbo-0613(Default and Latest)"
|
||||
msgstr ""
|
||||
|
||||
#. module: app_chatgpt
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__ai_model__gpt-3_5-turbo-16k-0613
|
||||
#: model:ir.model.fields.selection,name:app_chatgpt.selection__ai_robot__set_ai_model__gpt-3_5-turbo-16k-0613
|
||||
msgid "gpt-3.5-turbo-16k-0613(Big text)"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -21,7 +21,10 @@ class AiRobot(models.Model):
|
||||
name = fields.Char(string='Name', translate=True, required=True)
|
||||
provider = fields.Selection(string="AI Provider", selection=[('openai', 'OpenAI'), ('azure', 'Azure')],
|
||||
required=True, default='openai', change_default=True)
|
||||
ai_model = fields.Selection(string="AI Model", selection=[
|
||||
# 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)
|
||||
|
||||
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)'),
|
||||
('gpt-4', 'Chatgpt 4'),
|
||||
@@ -32,7 +35,7 @@ class AiRobot(models.Model):
|
||||
('code-davinci-002', 'Chatgpt 2 Code Optimized'),
|
||||
('text-davinci-002', 'Chatgpt 2 Davinci'),
|
||||
('dall-e2', 'Dall-E Image'),
|
||||
], required=True, default='gpt-3.5-turbo-0613',
|
||||
], default='gpt-3.5-turbo-0613',
|
||||
help="""
|
||||
GPT-4: Can understand Image, generate natural language or code.
|
||||
GPT-3.5: A set of models that improve on GPT-3 and can understand as well as generate natural language or code
|
||||
@@ -449,6 +452,13 @@ GPT-3 A set of models that can understand and generate natural language
|
||||
image_file = tools.file_open(path, 'rb')
|
||||
self.image_avatar = base64.b64encode(image_file.read())
|
||||
|
||||
@api.onchange('set_ai_model')
|
||||
def _onchange_set_ai_model(self):
|
||||
if self.set_ai_model:
|
||||
self.ai_model = self.set_ai_model
|
||||
else:
|
||||
self.ai_model = None
|
||||
|
||||
def filter_sensitive_words(self, data):
|
||||
if self.is_filtering:
|
||||
search = WordsSearch()
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 71 KiB |
@@ -25,6 +25,7 @@
|
||||
<field name="id"/>
|
||||
<field name="name"/>
|
||||
<field name="provider"/>
|
||||
<field name="set_ai_model"/>
|
||||
<field name="ai_model"/>
|
||||
<field name="partner_count"/>
|
||||
<field name="image_avatar"/>
|
||||
|
||||
Reference in New Issue
Block a user