mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update azure chatgpt
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<field name="provider">azure</field>
|
||||
<field name="endpoint">https://my.openai.azure.com</field>
|
||||
<field name="engine">gpt35</field>
|
||||
<field name="api_version">2024-02-15-preview</field>
|
||||
<field name="api_version">2024-03-01-preview</field>
|
||||
<field name="sequence">8</field>
|
||||
<field name="image_avatar" type="base64" file="app_chatgpt/static/description/src/chatgpt35_azure.png"/>
|
||||
</record>
|
||||
@@ -36,7 +36,7 @@
|
||||
<field name="provider">azure</field>
|
||||
<field name="endpoint">https://my.openai.azure.com</field>
|
||||
<field name="engine">gpt4</field>
|
||||
<field name="api_version">2024-02-15-preview</field>
|
||||
<field name="api_version">2024-03-01-preview</field>
|
||||
<field name="sequence">9</field>
|
||||
<field name="image_avatar" type="base64" file="app_chatgpt/static/description/src/chatgpt4_azure.png"/>
|
||||
</record>
|
||||
@@ -45,7 +45,7 @@
|
||||
<field name="provider">azure</field>
|
||||
<field name="endpoint">https://my.openai.azure.com</field>
|
||||
<field name="engine">gpt4-32k</field>
|
||||
<field name="api_version">2024-02-15-preview</field>
|
||||
<field name="api_version">2024-03-01-preview</field>
|
||||
<field name="sequence">10</field>
|
||||
<field name="image_avatar" type="base64" file="app_chatgpt/static/description/src/chatgpt4_azure.png"/>
|
||||
</record>
|
||||
|
||||
@@ -23,7 +23,8 @@ class AiRobot(models.Model):
|
||||
# update ai_robot set ai_model=set_ai_model
|
||||
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-0125', 'gpt-3.5-turbo-0125(Default and Latest)'),
|
||||
('gpt-3.5-turbo-0613', 'gpt-3.5-turbo-0613'),
|
||||
('gpt-3.5-turbo-16k-0613', 'gpt-3.5-turbo-16k-0613(Big text)'),
|
||||
('gpt-4', 'Chatgpt 4'),
|
||||
('gpt-4-32k', 'Chatgpt 4 32k'),
|
||||
@@ -33,7 +34,7 @@ class AiRobot(models.Model):
|
||||
('code-davinci-002', 'Chatgpt 2 Code Optimized'),
|
||||
('text-davinci-002', 'Chatgpt 2 Davinci'),
|
||||
('dall-e2', 'Dall-E Image'),
|
||||
], default='gpt-3.5-turbo-0613',
|
||||
], default='gpt-3.5-turbo-0125',
|
||||
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
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
<field name="name"/>
|
||||
<field name="provider" optional="hide"/>
|
||||
<field name="ai_model" optional="show"/>
|
||||
<field name="api_version" optional="hide"/>
|
||||
<field name="openapi_api_key" password="True"/>
|
||||
<field name="max_tokens" optional="show"/>
|
||||
<field name="temperature"/>
|
||||
|
||||
Reference in New Issue
Block a user