diff --git a/app_chatgpt/__init__.py b/app_chatgpt/__init__.py index 8a67bc5a..d6948c82 100644 --- a/app_chatgpt/__init__.py +++ b/app_chatgpt/__init__.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2020-Present InTechual Solutions. () # from . import controllers from . import models diff --git a/app_chatgpt/__manifest__.py b/app_chatgpt/__manifest__.py index b9ac3881..58676d76 100644 --- a/app_chatgpt/__manifest__.py +++ b/app_chatgpt/__manifest__.py @@ -10,7 +10,7 @@ { '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', 'company': 'Sunpop.cn', 'maintainer': 'Sunpop.cn', diff --git a/app_chatgpt/controllers/__init__.py b/app_chatgpt/controllers/__init__.py index dcd9a093..65a8c120 100644 --- a/app_chatgpt/controllers/__init__.py +++ b/app_chatgpt/controllers/__init__.py @@ -1,5 +1,3 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2020-Present InTechual Solutions. () - from . import main diff --git a/app_chatgpt/controllers/main.py b/app_chatgpt/controllers/main.py index e85192b4..217c4d8b 100644 --- a/app_chatgpt/controllers/main.py +++ b/app_chatgpt/controllers/main.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2020-Present InTechual Solutions. () from odoo import http diff --git a/app_chatgpt/models/__init__.py b/app_chatgpt/models/__init__.py index 10f457fa..b8459a87 100644 --- a/app_chatgpt/models/__init__.py +++ b/app_chatgpt/models/__init__.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2020-Present InTechual Solutions. () from . import mail_channel from . import res_config_settings diff --git a/app_chatgpt/models/mail_channel.py b/app_chatgpt/models/mail_channel.py index b78ba3d4..ac953539 100644 --- a/app_chatgpt/models/mail_channel.py +++ b/app_chatgpt/models/mail_channel.py @@ -21,7 +21,7 @@ class Channel(models.Model): return res 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" # 以下处理 open ai diff --git a/app_chatgpt/models/res_config_settings.py b/app_chatgpt/models/res_config_settings.py index 0a81dd8c..fb6af4f0 100644 --- a/app_chatgpt/models/res_config_settings.py +++ b/app_chatgpt/models/res_config_settings.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2020-Present InTechual Solutions. () from odoo import fields, models diff --git a/app_chatgpt/views/ai_robot_views.xml b/app_chatgpt/views/ai_robot_views.xml index 017010c8..6cb1938a 100644 --- a/app_chatgpt/views/ai_robot_views.xml +++ b/app_chatgpt/views/ai_robot_views.xml @@ -21,6 +21,8 @@ ai.robot
+
+