init ai wechat

This commit is contained in:
ivan deng
2023-03-28 21:09:40 +08:00
parent f3fc52eb99
commit d2e172eb64
8 changed files with 4 additions and 8 deletions

View File

@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright (c) 2020-Present InTechual Solutions. (<https://intechualsolutions.com/>)
# from . import controllers # from . import controllers
from . import models from . import models

View File

@@ -10,7 +10,7 @@
{ {
'name': 'Latest ChatGPT4 AI Center. GPT 4 for image, Dall-E Image.Multi Robot Support. Chat and Training', 'name': 'Latest ChatGPT4 AI Center. GPT 4 for image, Dall-E Image.Multi Robot Support. Chat and Training',
'version': '16.23.03.20', 'version': '16.23.03.28',
'author': 'Sunpop.cn', 'author': 'Sunpop.cn',
'company': 'Sunpop.cn', 'company': 'Sunpop.cn',
'maintainer': 'Sunpop.cn', 'maintainer': 'Sunpop.cn',

View File

@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright (c) 2020-Present InTechual Solutions. (<https://intechualsolutions.com/>)
from . import main from . import main

View File

@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright (c) 2020-Present InTechual Solutions. (<https://intechualsolutions.com/>)
from odoo import http from odoo import http

View File

@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright (c) 2020-Present InTechual Solutions. (<https://intechualsolutions.com/>)
from . import mail_channel from . import mail_channel
from . import res_config_settings from . import res_config_settings

View File

@@ -21,7 +21,7 @@ class Channel(models.Model):
return res return res
headers = {"Content-Type": "application/json", "Authorization": f"Bearer {api_key}"} headers = {"Content-Type": "application/json", "Authorization": f"Bearer {api_key}"}
R_TIMEOUT = 30 R_TIMEOUT = 300
o_url = gpt_id.endpoint or "https://api.openai.com/v1/chat/completions" o_url = gpt_id.endpoint or "https://api.openai.com/v1/chat/completions"
# 以下处理 open ai # 以下处理 open ai

View File

@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright (c) 2020-Present InTechual Solutions. (<https://intechualsolutions.com/>)
from odoo import fields, models from odoo import fields, models

View File

@@ -21,6 +21,8 @@
<field name="model">ai.robot</field> <field name="model">ai.robot</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form> <form>
<header>
</header>
<sheet> <sheet>
<group> <group>
<group> <group>