mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix odoo 13 gpt
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
<field name="provider" optional="hide"/>
|
||||
<field name="ai_model" optional="show"/>
|
||||
<field name="openapi_api_key" password="True"/>
|
||||
<field name="max_length" optional="show"/>
|
||||
<field name="temperature"/>
|
||||
</tree>
|
||||
</field>
|
||||
@@ -20,11 +21,13 @@
|
||||
<field name="model">ai.robot</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<header>
|
||||
</header>
|
||||
<sheet>
|
||||
<group>
|
||||
<group>
|
||||
<field name="name"/>
|
||||
<field name="openapi_api_key" password="True"/>
|
||||
<field name="openapi_api_key" password="True" required="True"/>
|
||||
<field name="temperature"/>
|
||||
<field name="sequence"/>
|
||||
</group>
|
||||
@@ -37,6 +40,14 @@
|
||||
<field name="provider"/>
|
||||
<a href="https://platform.openai.com/docs/introduction" title="OpenAI Document" class="o_doc_link" target="_blank"></a>
|
||||
</div>
|
||||
<field name="max_length"/>
|
||||
<field name="engine"/>
|
||||
<field name="endpoint"/>
|
||||
<field name="api_version"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="is_filtering"/>
|
||||
<field name="sensitive_words" attrs="{'invisible': [('is_filtering', '=', False)]}"/>
|
||||
</group>
|
||||
</group>
|
||||
</sheet>
|
||||
|
||||
@@ -6,14 +6,18 @@
|
||||
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@name='integration']" position="after">
|
||||
<h2>ChatGPT</h2>
|
||||
<h2>Ai Center(Chatgpt)</h2>
|
||||
<div class="col-xs-12 row o_settings_container" id="chatgpt_integraion">
|
||||
<div class="col-xs-12 col-md-10 o_setting_box">
|
||||
<div class="o_setting_right_pane border-start-0">
|
||||
<div class="content-group">
|
||||
<div class="row mt0">
|
||||
<label class="col-lg-2" string="上下文连接超时" for="openapi_context_timeout"/>
|
||||
<field name="openapi_context_timeout" title="上下文连接超时 秒数" style="width: 10% !important;"/>秒
|
||||
<label class="col-lg-2" string="Timout then disconnect(s)" for="openapi_context_timeout"/>
|
||||
<field name="openapi_context_timeout" title="After timeout seconds then Disconnect" style="width: 10% !important;"/>Seconds
|
||||
</div>
|
||||
<div class="row mt0">
|
||||
<label class="col-lg-2" for="openai_sync_config"/>
|
||||
<field name="openai_sync_config" style="width: 10% !important;"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<field name="model">res.users</field>
|
||||
<field name="inherit_id" ref="base.view_users_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page[@name='preferences']" position="after">
|
||||
<xpath expr="//group[@name='preferences']/../.." position="after">
|
||||
<page name="page_chatgpt" string="ChatGPT">
|
||||
<group>
|
||||
<group>
|
||||
|
||||
Reference in New Issue
Block a user