fix #I6FNUR [app_chatgpt]ChatGpt对接改造至 app-odoo

This commit is contained in:
Chill
2023-02-21 15:33:38 +08:00
parent 86db8027dc
commit d76147092a
10 changed files with 184 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
from odoo import api, fields, models, _
class GptRobot(models.Model):
_name = 'gpt.robot'
_description = 'Gpt Robot'
name = fields.Char(string='Name')
openapi_api_key = fields.Char(string="API Key", help="Provide the API key here")
temperature = fields.Float(string='Temperature')