mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix #I6FNUR [app_chatgpt]ChatGpt对接改造至 app-odoo
This commit is contained in:
12
app_chatgpt/models/gpt_robot.py
Normal file
12
app_chatgpt/models/gpt_robot.py
Normal 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')
|
||||
Reference in New Issue
Block a user