diff --git a/app_chatgpt/__manifest__.py b/app_chatgpt/__manifest__.py index 208a37a5..e1b0cc04 100644 --- a/app_chatgpt/__manifest__.py +++ b/app_chatgpt/__manifest__.py @@ -9,8 +9,8 @@ # Copyright (c) 2020-Present InTechual Solutions. () { - 'name': 'ChatGPT Robot Multi Chat and Training(Under Construction)', - 'version': '16.23.02.20', + 'name': 'Latest ChatGPT AI Center. GPT 3.5 Turbo, Dall-E Image.Multi Robot Support. Chat and Training', + 'version': '13.23.03.05', 'author': 'Sunpop.cn', 'company': 'Sunpop.cn', 'maintainer': 'Sunpop.cn', @@ -19,22 +19,26 @@ 'license': 'LGPL-3', 'sequence': 10, 'license': 'AGPL-3', - 'images': ['static/description/banner.png'], + 'images': ['static/description/banner.gif'], 'summary': ''' - Multi Odoo ChatGPT Robot. Integration All ChatGpt Api. - Chat channel with several ChatGPT Robots. + ChatGpt Odoo AI Center. Multi Odoo ChatGPT Robot. Support chatgpt 3.5 turbo, text-davinci, DALL·E, Integration All ChatGpt Api. + Easy Chat channel with several ChatGPT Robots and train. Whitelist and blacklist for Users or IP. - Base on is_chatgpt_integration from InTechual Solutions. ''', 'description': ''' Allows the application to leverage the capabilities of the GPT language model to generate human-like responses, providing a more natural and intuitive user experience. - 1. Multi ChatGpt robot Connector. Chat and train. - 2. Multi User Chat with ChatGpt - 3. ChatGpt Channel for Group Chat - 4. White and black List for ChatGpt - 5. Demo Chat time for new user - 6. Easy Start and Stop ChatGpt + Base on is_chatgpt_integration from InTechual Solutions. + 1. Multi ChatGpt openAI robot Connector. Chat and train. + 2. Multi Api support, Chatgpt 3.5 Turbo, Chatgpt 3 Davinci, Chatgpt 2 Code Optimized, 'Dall-E Image. + 3. Bind ChatGpt Api to user. So we can chat to robot user or use ChatGpt Channel for Group Chat. + 4. White and black List for ChatGpt. + 5. Setup Demo Chat time for every new user. + 6. Easy Start and Stop ChatGpt. + 7. Evaluation the ai robot to make better response. This training. + 11. Multi-language Support. Multi-Company Support. + 12. Support Odoo 16,15,14,13,12, Enterprise and Community and odoo.sh Edition. + 13. Full Open Source. ''', 'depends': ['base', 'base_setup', 'mail'], 'data': [ diff --git a/app_chatgpt/data/ir_config_parameter.xml b/app_chatgpt/data/ir_config_parameter.xml index 728f78cb..7c38b01c 100644 --- a/app_chatgpt/data/ir_config_parameter.xml +++ b/app_chatgpt/data/ir_config_parameter.xml @@ -4,7 +4,7 @@ app_chatgpt.openapi_context_timeout - 600 + 300 diff --git a/app_chatgpt/models/ai_robot.py b/app_chatgpt/models/ai_robot.py index e9b7967d..77cf960d 100644 --- a/app_chatgpt/models/ai_robot.py +++ b/app_chatgpt/models/ai_robot.py @@ -10,8 +10,28 @@ class AiRobot(models.Model): _order = 'sequence, name' name = fields.Char(string='Name', translate=True) + provider = fields.Selection(string="AI Provider", selection=[('openai', 'OpenAI')], required=True, default='openai') + ai_model = fields.Selection(string="AI Model", selection=[ + ('gpt-3.5-turbo', 'Chatgpt 3.5 Turbo'), + ('gpt-3.5-turbo-0301', 'Chatgpt 3.5 Turbo on 20230301'), + ('text-davinci-003', 'Chatgpt 3 Davinci'), + ('code-davinci-002', 'Chatgpt 2 Code Optimized'), + ('text-davinci-002', 'Chatgpt 2 Davinci'), + ('dall-e2', 'Dall-E Image'), + ], required=True, default='gpt-3.5-turbo', + help=""" +GPT-3.5: A set of models that improve on GPT-3 and can understand as well as generate natural language or code +DALL·E: A model that can generate and edit images given a natural language prompt +Whisper: A model that can convert audio into text +Embeddings: A set of models that can convert text into a numerical form +CodexLimited: A set of models that can understand and generate code, including translating natural language to code +Moderation: A fine-tuned model that can detect whether text may be sensitive or unsafe +GPT-3 A set of models that can understand and generate natural language + """) openapi_api_key = fields.Char(string="API Key", help="Provide the API key here") temperature = fields.Float(string='Temperature', default=0.9) + + sequence = fields.Integer('Sequence', help="Determine the display order", default=10) def action_disconnect(self): diff --git a/app_chatgpt/models/mail_channel.py b/app_chatgpt/models/mail_channel.py index f8d10b6b..bfbf947e 100644 --- a/app_chatgpt/models/mail_channel.py +++ b/app_chatgpt/models/mail_channel.py @@ -1,9 +1,10 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2020-Present InTechual Solutions. () + import openai import requests,json import datetime +# from transformers import TextDavinciTokenizer, TextDavinciModel from odoo import api, fields, models, _ from odoo.exceptions import UserError import logging @@ -14,25 +15,60 @@ class Channel(models.Model): _inherit = 'mail.channel' @api.model - def get_openai(self, api_key, data, user="Odoo"): + def get_openai(self, api_key, ai_model, data, user="Odoo"): headers = {"Content-Type": "application/json", "Authorization": f"Bearer {api_key}"} - pdata = { - "model": "text-davinci-003", - "prompt": data, - "temperature": 0.9, - "max_tokens": 2000, - "top_p": 1, - "frequency_penalty": 0.0, - "presence_penalty": 0.6, - "user": user, - "stop": ["Human:", "AI:"] - } - response = requests.post("https://api.openai.com/v1/completions", data=json.dumps(pdata), headers=headers) - res = response.json() - if 'choices' in res: - return '\n'.join([x['text'] for x in res['choices']]) - - _logger.error(res) + R_TIMEOUT = 5 + + if ai_model == 'dall-e2': + # todo: 处理 图像引擎,主要是返回参数到聊天中 + # image_url = response['data'][0]['url'] + # https://platform.openai.com/docs/guides/images/introduction + pdata = { + "prompt": data, + "n": 3, + "size": "1024x1024", + } + return '建设中' + elif ai_model in ['gpt-3.5-turbo', 'gpt-3.5-turbo-0301']: + pdata = { + "model": ai_model, + "messages": [{"role": "user", "content": data}], + "temperature": 0.9, + "max_tokens": 2000, + "top_p": 1, + "frequency_penalty": 0.0, + "presence_penalty": 0.6, + "user": user, + "stop": ["Human:", "AI:"] + } + response = requests.post("https://api.openai.com/v1/chat/completions", data=json.dumps(pdata), headers=headers, timeout=R_TIMEOUT) + res = response.json() + if 'choices' in res: + # for rec in res: + # res = rec['message']['content'] + res = '\n'.join([x['message']['content'] for x in res['choices']]) + return res + else: + pdata = { + "model": ai_model, + "prompt": data, + "temperature": 0.9, + "max_tokens": 2000, + "top_p": 1, + "frequency_penalty": 0.0, + "presence_penalty": 0.6, + "user": user, + "stop": ["Human:", "AI:"] + } + response = requests.post("https://api.openai.com/v1/completions", data=json.dumps(pdata), headers=headers, timeout=R_TIMEOUT) + res = response.json() + if 'choices' in res: + res = '\n'.join([x['text'] for x in res['choices']]) + return res + # 获取模型信息 + # list_model = requests.get("https://api.openai.com/v1/models", headers=headers) + # model_info = requests.get("https://api.openai.com/v1/models/%s" % ai_model, headers=headers) + return "获取结果超时,请重新跟我聊聊。" @api.model @@ -142,21 +178,22 @@ class Channel(models.Model): # print(msg_vals.get('record_name', '')) # print('self.channel_type :',self.channel_type) if gpt_id: - chatgpt_name = str(gpt_id.name or '') + ', ' + ai_model = gpt_id.ai_model or 'text-davinci-003' # print('chatgpt_name:', chatgpt_name) # if author_id != to_partner_id.id and (chatgpt_name in msg_vals.get('record_name', '') or 'ChatGPT' in msg_vals.get('record_name', '') ) and self.channel_type == 'chat': if author_id != to_partner_id.id and self.channel_type == 'chat': _logger.info(f'私聊:author_id:{author_id},partner_chatgpt.id:{to_partner_id.id}') try: channel = self.env[msg_vals.get('model')].browse(msg_vals.get('res_id')) - prompt = self.get_openai_context(channel.id, to_partner_id.id, prompt,openapi_context_timeout) + if ai_model not in ['gpt-3.5-turbo', 'gpt-3.5-turbo-0301']: + prompt = self.get_openai_context(channel.id, to_partner_id.id, prompt, openapi_context_timeout) print(prompt) # res = self.get_chatgpt_answer(prompt,partner_name) - res = self.get_openai(api_key, prompt, partner_name) + res = self.get_openai(api_key, ai_model, prompt, partner_name) res = res.replace('\n', '
') # print('res:',res) # print('channel:',channel) - channel.with_user(user_id).message_post(body=res, message_type='comment',subtype_xmlid='mail.mt_comment',parent_id=message.id) + channel.with_user(user_id).message_post(body=res, message_type='comment',subtype_xmlid='mail.mt_comment', parent_id=message.id) # channel.with_user(user_chatgpt).message_post(body=res, message_type='notification', subtype_xmlid='mail.mt_comment') # channel.sudo().message_post( # body=res, @@ -171,10 +208,10 @@ class Channel(models.Model): elif author_id != to_partner_id.id and msg_vals.get('model', '') == 'mail.channel' and msg_vals.get('res_id', 0) == chatgpt_channel_id.id: _logger.info(f'频道群聊:author_id:{author_id},partner_chatgpt.id:{to_partner_id.id}') try: - prompt = self.get_openai_context(chatgpt_channel_id.id, to_partner_id.id, prompt,openapi_context_timeout) + prompt = self.get_openai_context(chatgpt_channel_id.id, to_partner_id.id, prompt, openapi_context_timeout) # print(prompt) # res = self.get_chatgpt_answer(prompt, partner_name) - res = self.get_openai(api_key, prompt, partner_name) + res = self.get_openai(api_key, ai_model, prompt, partner_name) res = res.replace('\n', '
') chatgpt_channel_id.with_user(user_id).message_post(body=res, message_type='comment', subtype_xmlid='mail.mt_comment',parent_id=message.id) except Exception as e: diff --git a/app_chatgpt/models/z_list_model.json b/app_chatgpt/models/z_list_model.json new file mode 100644 index 00000000..14a86749 --- /dev/null +++ b/app_chatgpt/models/z_list_model.json @@ -0,0 +1,1661 @@ +{ + "object": "list", + "data": [ + { + "id": "babbage", + "object": "model", + "created": 1649358449, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-49FUp5v084tBB49tC4z8LPH5", + "object": "model_permission", + "created": 1669085501, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "babbage", + "parent": null + }, + { + "id": "davinci", + "object": "model", + "created": 1649359874, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-U6ZwlyAd0LyMk4rcMdz33Yc3", + "object": "model_permission", + "created": 1669066355, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "davinci", + "parent": null + }, + { + "id": "gpt-3.5-turbo-0301", + "object": "model", + "created": 1677649963, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-ms2DpLH5OCOZpUikJ4sRQNkh", + "object": "model_permission", + "created": 1677691853, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "gpt-3.5-turbo-0301", + "parent": null + }, + { + "id": "text-davinci-003", + "object": "model", + "created": 1669599635, + "owned_by": "openai-internal", + "permission": [ + { + "id": "modelperm-6CAfTW5IbFpnlziQKoDilahq", + "object": "model_permission", + "created": 1677793558, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-davinci-003", + "parent": null + }, + { + "id": "babbage-code-search-code", + "object": "model", + "created": 1651172509, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-4qRnA3Hj8HIJbgo0cGbcmErn", + "object": "model_permission", + "created": 1669085863, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "babbage-code-search-code", + "parent": null + }, + { + "id": "text-similarity-babbage-001", + "object": "model", + "created": 1651172505, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-48kcCHhfzvnfY84OtJf5m8Cz", + "object": "model_permission", + "created": 1669081947, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-similarity-babbage-001", + "parent": null + }, + { + "id": "text-davinci-001", + "object": "model", + "created": 1649364042, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-MVM5NfoRjXkDve3uQW3YZDDt", + "object": "model_permission", + "created": 1669066355, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-davinci-001", + "parent": null + }, + { + "id": "ada", + "object": "model", + "created": 1649357491, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-u0nKN4ub7EVQudgMuvCuvDjc", + "object": "model_permission", + "created": 1675997661, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "ada", + "parent": null + }, + { + "id": "curie-instruct-beta", + "object": "model", + "created": 1649364042, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-JlSyMbxXeFm42SDjN0wTD26Y", + "object": "model_permission", + "created": 1669070162, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "curie-instruct-beta", + "parent": null + }, + { + "id": "babbage-code-search-text", + "object": "model", + "created": 1651172509, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-Lftf8H4ZPDxNxVs0hHPJBUoe", + "object": "model_permission", + "created": 1669085863, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "babbage-code-search-text", + "parent": null + }, + { + "id": "babbage-similarity", + "object": "model", + "created": 1651172505, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-mS20lnPqhebTaFPrcCufyg7m", + "object": "model_permission", + "created": 1669081947, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "babbage-similarity", + "parent": null + }, + { + "id": "gpt-3.5-turbo", + "object": "model", + "created": 1677610602, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-ZErASyl63fhYUeMMk7QKOHAB", + "object": "model_permission", + "created": 1677691854, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "gpt-3.5-turbo", + "parent": null + }, + { + "id": "code-davinci-002", + "object": "model", + "created": 1649880485, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-8hC5jvDSIXgYe2NPyomfyFJr", + "object": "model_permission", + "created": 1677737839, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "code-davinci-002", + "parent": null + }, + { + "id": "code-search-babbage-text-001", + "object": "model", + "created": 1651172507, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-EC5ASz4NLChtEV1Cwkmrwm57", + "object": "model_permission", + "created": 1669085863, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "code-search-babbage-text-001", + "parent": null + }, + { + "id": "text-embedding-ada-002", + "object": "model", + "created": 1671217299, + "owned_by": "openai-internal", + "permission": [ + { + "id": "modelperm-ThMneEHcUgdBaIucwREqRj2a", + "object": "model_permission", + "created": 1677075687, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-embedding-ada-002", + "parent": null + }, + { + "id": "code-cushman-001", + "object": "model", + "created": 1656081837, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-M6pwNXr8UmY3mqdUEe4VFXdY", + "object": "model_permission", + "created": 1669066355, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "code-cushman-001", + "parent": null + }, + { + "id": "whisper-1", + "object": "model", + "created": 1677532384, + "owned_by": "openai-internal", + "permission": [ + { + "id": "modelperm-MX888R5RhewPTR12HguE4hM2", + "object": "model_permission", + "created": 1677691932, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "whisper-1", + "parent": null + }, + { + "id": "code-search-babbage-code-001", + "object": "model", + "created": 1651172507, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-64LWHdlANgak2rHzc3K5Stt0", + "object": "model_permission", + "created": 1669085864, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "code-search-babbage-code-001", + "parent": null + }, + { + "id": "audio-transcribe-deprecated", + "object": "model", + "created": 1674776185, + "owned_by": "openai-internal", + "permission": [ + { + "id": "modelperm-IPCtO1a9wW5TDxGCIqy0iVfK", + "object": "model_permission", + "created": 1674776185, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "audio-transcribe-deprecated", + "parent": null + }, + { + "id": "text-ada-001", + "object": "model", + "created": 1649364042, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-KN5dRBCEW4az6gwcGXkRkMwK", + "object": "model_permission", + "created": 1669088497, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-ada-001", + "parent": null + }, + { + "id": "text-similarity-ada-001", + "object": "model", + "created": 1651172505, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-DdCqkqmORpqxqdg4TkFRAgmw", + "object": "model_permission", + "created": 1669092759, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-similarity-ada-001", + "parent": null + }, + { + "id": "text-davinci-insert-002", + "object": "model", + "created": 1649880484, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-V5YQoSyiapAf4km5wisXkNXh", + "object": "model_permission", + "created": 1669066354, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-davinci-insert-002", + "parent": null + }, + { + "id": "ada-code-search-code", + "object": "model", + "created": 1651172505, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-wa8tg4Pi9QQNaWdjMTM8dkkx", + "object": "model_permission", + "created": 1669087421, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "ada-code-search-code", + "parent": null + }, + { + "id": "ada-similarity", + "object": "model", + "created": 1651172507, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-LtSIwCEReeDcvGTmM13gv6Fg", + "object": "model_permission", + "created": 1669092759, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "ada-similarity", + "parent": null + }, + { + "id": "code-search-ada-text-001", + "object": "model", + "created": 1651172507, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-JBssaJSmbgvJfTkX71y71k2J", + "object": "model_permission", + "created": 1669087421, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "code-search-ada-text-001", + "parent": null + }, + { + "id": "text-search-ada-query-001", + "object": "model", + "created": 1651172505, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-1YiiBMYC8it0mpQCBK7t8uSP", + "object": "model_permission", + "created": 1669092640, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-search-ada-query-001", + "parent": null + }, + { + "id": "text-curie-001", + "object": "model", + "created": 1649364043, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-fGAoEKBH01KNZ3zz81Sro34Q", + "object": "model_permission", + "created": 1669066352, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-curie-001", + "parent": null + }, + { + "id": "text-davinci-edit-001", + "object": "model", + "created": 1649809179, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-VzNMGrIRm3HxhEl64gkjZdEh", + "object": "model_permission", + "created": 1669066354, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-davinci-edit-001", + "parent": null + }, + { + "id": "davinci-search-document", + "object": "model", + "created": 1651172509, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-M43LVJQRGxz6ode34ctLrCaG", + "object": "model_permission", + "created": 1669066355, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "davinci-search-document", + "parent": null + }, + { + "id": "ada-code-search-text", + "object": "model", + "created": 1651172510, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-kFc17wOI4d1FjZEaCqnk4Frg", + "object": "model_permission", + "created": 1669087421, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "ada-code-search-text", + "parent": null + }, + { + "id": "text-search-ada-doc-001", + "object": "model", + "created": 1651172507, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-kbHvYouDlkD78ehcmMOGdKpK", + "object": "model_permission", + "created": 1669092640, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-search-ada-doc-001", + "parent": null + }, + { + "id": "code-davinci-edit-001", + "object": "model", + "created": 1649880484, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-WwansDxcKNvZtKugNqJnsvfv", + "object": "model_permission", + "created": 1669066354, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "code-davinci-edit-001", + "parent": null + }, + { + "id": "davinci-instruct-beta", + "object": "model", + "created": 1649364042, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-k9kuMYlfd9nvFiJV2ug0NWws", + "object": "model_permission", + "created": 1669066356, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "davinci-instruct-beta", + "parent": null + }, + { + "id": "text-similarity-curie-001", + "object": "model", + "created": 1651172507, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-6dgTTyXrZE7d53Licw4hYkvd", + "object": "model_permission", + "created": 1669079883, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-similarity-curie-001", + "parent": null + }, + { + "id": "code-search-ada-code-001", + "object": "model", + "created": 1651172507, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-8soch45iiGvux5Fg1ORjdC4s", + "object": "model_permission", + "created": 1669087421, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "code-search-ada-code-001", + "parent": null + }, + { + "id": "ada-search-query", + "object": "model", + "created": 1651172505, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-b753xmIzAUkluQ1L20eDZLtQ", + "object": "model_permission", + "created": 1669092640, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "ada-search-query", + "parent": null + }, + { + "id": "text-search-davinci-query-001", + "object": "model", + "created": 1651172505, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-9McKbsEYSaDshU9M3bp6ejUb", + "object": "model_permission", + "created": 1669066353, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-search-davinci-query-001", + "parent": null + }, + { + "id": "curie-search-query", + "object": "model", + "created": 1651172509, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-sIbfSwzVpVBtymQgOQSLBpxe", + "object": "model_permission", + "created": 1677273417, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "curie-search-query", + "parent": null + }, + { + "id": "davinci-search-query", + "object": "model", + "created": 1651172505, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-lYkiTZMmJMWm8jvkPx2duyHE", + "object": "model_permission", + "created": 1669066353, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "davinci-search-query", + "parent": null + }, + { + "id": "text-davinci-insert-001", + "object": "model", + "created": 1649880484, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-3gRQMBOMoccZIURE3ZxboZWA", + "object": "model_permission", + "created": 1669066354, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-davinci-insert-001", + "parent": null + }, + { + "id": "babbage-search-document", + "object": "model", + "created": 1651172510, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-5qFV9kxCRGKIXpBEP75chmp7", + "object": "model_permission", + "created": 1669084981, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "babbage-search-document", + "parent": null + }, + { + "id": "ada-search-document", + "object": "model", + "created": 1651172507, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-8qUMuMAbo4EwedbGamV7e9hq", + "object": "model_permission", + "created": 1669092640, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "ada-search-document", + "parent": null + }, + { + "id": "text-search-curie-query-001", + "object": "model", + "created": 1651172509, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-Iion0NCpsXPNtIkQ0owQLi7V", + "object": "model_permission", + "created": 1677273417, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-search-curie-query-001", + "parent": null + }, + { + "id": "text-search-babbage-doc-001", + "object": "model", + "created": 1651172509, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-ao2r26P2Th7nhRFleHwy2gn5", + "object": "model_permission", + "created": 1669084981, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-search-babbage-doc-001", + "parent": null + }, + { + "id": "text-davinci-002", + "object": "model", + "created": 1649880484, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-kOLsgLs7IgI9PTPI245IRWZH", + "object": "model_permission", + "created": 1676585871, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-davinci-002", + "parent": null + }, + { + "id": "curie-search-document", + "object": "model", + "created": 1651172508, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-LDsN5wW8eKVuh1OsyciHntE9", + "object": "model_permission", + "created": 1677273417, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "curie-search-document", + "parent": null + }, + { + "id": "text-search-curie-doc-001", + "object": "model", + "created": 1651172509, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-taUGRSku7bQLa24SNIwYPEsi", + "object": "model_permission", + "created": 1677273417, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-search-curie-doc-001", + "parent": null + }, + { + "id": "babbage-search-query", + "object": "model", + "created": 1651172509, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-wSs1hMXDKsrcErlbN8HmzlLE", + "object": "model_permission", + "created": 1669084981, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "babbage-search-query", + "parent": null + }, + { + "id": "text-babbage-001", + "object": "model", + "created": 1649364043, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-a3Ph5FIBbJxsoA4wvx7VYC7R", + "object": "model_permission", + "created": 1675105935, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-babbage-001", + "parent": null + }, + { + "id": "text-search-davinci-doc-001", + "object": "model", + "created": 1651172505, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-qhSf1j2MJMujcu3t7cHnF1DN", + "object": "model_permission", + "created": 1669066353, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-search-davinci-doc-001", + "parent": null + }, + { + "id": "text-search-babbage-query-001", + "object": "model", + "created": 1651172509, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-Kg70kkFxD93QQqsVe4Zw8vjc", + "object": "model_permission", + "created": 1669084981, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-search-babbage-query-001", + "parent": null + }, + { + "id": "curie-similarity", + "object": "model", + "created": 1651172510, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-zhWKExSloaQiJgzjVHFmh2wR", + "object": "model_permission", + "created": 1675106290, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "curie-similarity", + "parent": null + }, + { + "id": "curie", + "object": "model", + "created": 1649359874, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-oPaljeveTjEIDbhDjzFiyf4V", + "object": "model_permission", + "created": 1675106503, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "curie", + "parent": null + }, + { + "id": "text-similarity-davinci-001", + "object": "model", + "created": 1651172505, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-OvmcfYoq5V9SF9xTYw1Oz6Ue", + "object": "model_permission", + "created": 1669066356, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-similarity-davinci-001", + "parent": null + }, + { + "id": "davinci-similarity", + "object": "model", + "created": 1651172509, + "owned_by": "openai-dev", + "permission": [ + { + "id": "modelperm-lYYgng3LM0Y97HvB5CDc8no2", + "object": "model_permission", + "created": 1669066353, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": true, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "davinci-similarity", + "parent": null + }, + { + "id": "cushman:2020-05-03", + "object": "model", + "created": 1590625110, + "owned_by": "system", + "permission": [ + { + "id": "snapperm-FAup8P1KqclNlTsunLDRiesT", + "object": "model_permission", + "created": 1590625111, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": true, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "cushman:2020-05-03", + "parent": null + }, + { + "id": "ada:2020-05-03", + "object": "model", + "created": 1607631625, + "owned_by": "system", + "permission": [ + { + "id": "snapperm-9TYofAqUs54vytKYL0IX91rX", + "object": "model_permission", + "created": 1607631626, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "ada:2020-05-03", + "parent": null + }, + { + "id": "babbage:2020-05-03", + "object": "model", + "created": 1607632611, + "owned_by": "system", + "permission": [ + { + "id": "snapperm-jaLAcmyyNuaVmalCE1BGTGwf", + "object": "model_permission", + "created": 1607632613, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "babbage:2020-05-03", + "parent": null + }, + { + "id": "curie:2020-05-03", + "object": "model", + "created": 1607632725, + "owned_by": "system", + "permission": [ + { + "id": "snapperm-bt6R8PWbB2SwK5evFo0ZxSs4", + "object": "model_permission", + "created": 1607632727, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "curie:2020-05-03", + "parent": null + }, + { + "id": "davinci:2020-05-03", + "object": "model", + "created": 1607640163, + "owned_by": "system", + "permission": [ + { + "id": "snapperm-99cbfQTYDVeLkTYndX3UMpSr", + "object": "model_permission", + "created": 1607640164, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "davinci:2020-05-03", + "parent": null + }, + { + "id": "if-davinci-v2", + "object": "model", + "created": 1610745990, + "owned_by": "openai", + "permission": [ + { + "id": "snapperm-58q0TdK2K4kMgL3MoHvGWMlH", + "object": "model_permission", + "created": 1610746036, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "if-davinci-v2", + "parent": null + }, + { + "id": "if-curie-v2", + "object": "model", + "created": 1610745968, + "owned_by": "openai", + "permission": [ + { + "id": "snapperm-fwAseHVq6NGe6Ple6tKfzRSK", + "object": "model_permission", + "created": 1610746043, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "if-curie-v2", + "parent": null + }, + { + "id": "if-davinci:3.0.0", + "object": "model", + "created": 1629420755, + "owned_by": "openai", + "permission": [ + { + "id": "snapperm-T53lssiyMWwiuJwhyO9ic53z", + "object": "model_permission", + "created": 1629421809, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": true, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "if-davinci:3.0.0", + "parent": null + }, + { + "id": "davinci-if:3.0.0", + "object": "model", + "created": 1629498070, + "owned_by": "openai", + "permission": [ + { + "id": "snapperm-s6ZIAVMwlZwrLGGClTXqSK3Q", + "object": "model_permission", + "created": 1629498084, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": true, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "davinci-if:3.0.0", + "parent": null + }, + { + "id": "davinci-instruct-beta:2.0.0", + "object": "model", + "created": 1629501914, + "owned_by": "openai", + "permission": [ + { + "id": "snapperm-c70U4TBfiOD839xptP5pJzyc", + "object": "model_permission", + "created": 1629501939, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": true, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "davinci-instruct-beta:2.0.0", + "parent": null + }, + { + "id": "text-ada:001", + "object": "model", + "created": 1641949608, + "owned_by": "system", + "permission": [ + { + "id": "snapperm-d2PSnwFG1Yn9of6PvrrhkBcU", + "object": "model_permission", + "created": 1641949610, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-ada:001", + "parent": null + }, + { + "id": "text-davinci:001", + "object": "model", + "created": 1641943966, + "owned_by": "system", + "permission": [ + { + "id": "snapperm-Fj1O3zkKXOQy6AkcfQXRKcWA", + "object": "model_permission", + "created": 1641944340, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-davinci:001", + "parent": null + }, + { + "id": "text-curie:001", + "object": "model", + "created": 1641955047, + "owned_by": "system", + "permission": [ + { + "id": "snapperm-BI9TAT6SCj43JRsUb9CYadsz", + "object": "model_permission", + "created": 1641955123, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-curie:001", + "parent": null + }, + { + "id": "text-babbage:001", + "object": "model", + "created": 1642018370, + "owned_by": "openai", + "permission": [ + { + "id": "snapperm-7oP3WFr9x7qf5xb3eZrVABAH", + "object": "model_permission", + "created": 1642018480, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "text-babbage:001", + "parent": null + } + ] +} diff --git a/app_chatgpt/models/z_model_info.json b/app_chatgpt/models/z_model_info.json new file mode 100644 index 00000000..cfd5c185 --- /dev/null +++ b/app_chatgpt/models/z_model_info.json @@ -0,0 +1,24 @@ +{ + "id": "gpt-3.5-turbo", + "object": "model", + "created": 1677610602, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-ZErASyl63fhYUeMMk7QKOHAB", + "object": "model_permission", + "created": 1677691854, + "allow_create_engine": false, + "allow_sampling": true, + "allow_logprobs": true, + "allow_search_indices": false, + "allow_view": true, + "allow_fine_tuning": false, + "organization": "*", + "group": null, + "is_blocking": false + } + ], + "root": "gpt-3.5-turbo", + "parent": null +} diff --git a/app_chatgpt/static/description/banner.gif b/app_chatgpt/static/description/banner.gif new file mode 100644 index 00000000..b99e57e7 Binary files /dev/null and b/app_chatgpt/static/description/banner.gif differ diff --git a/app_chatgpt/static/description/banner.png b/app_chatgpt/static/description/banner.png index 517d9dea..99df04a5 100644 Binary files a/app_chatgpt/static/description/banner.png and b/app_chatgpt/static/description/banner.png differ diff --git a/app_chatgpt/static/description/demo1.png b/app_chatgpt/static/description/demo1.png new file mode 100644 index 00000000..ddf88770 Binary files /dev/null and b/app_chatgpt/static/description/demo1.png differ diff --git a/app_chatgpt/static/description/demo2.png b/app_chatgpt/static/description/demo2.png new file mode 100644 index 00000000..3862b87b Binary files /dev/null and b/app_chatgpt/static/description/demo2.png differ diff --git a/app_chatgpt/static/description/demo3.png b/app_chatgpt/static/description/demo3.png new file mode 100644 index 00000000..6ea69be8 Binary files /dev/null and b/app_chatgpt/static/description/demo3.png differ diff --git a/app_chatgpt/static/description/demo4.png b/app_chatgpt/static/description/demo4.png new file mode 100644 index 00000000..e20ecbda Binary files /dev/null and b/app_chatgpt/static/description/demo4.png differ diff --git a/app_chatgpt/static/description/demo5.png b/app_chatgpt/static/description/demo5.png new file mode 100644 index 00000000..40ad9e3d Binary files /dev/null and b/app_chatgpt/static/description/demo5.png differ diff --git a/app_chatgpt/static/description/demo6.png b/app_chatgpt/static/description/demo6.png new file mode 100644 index 00000000..4e0e7fba Binary files /dev/null and b/app_chatgpt/static/description/demo6.png differ diff --git a/app_chatgpt/static/description/demo7.png b/app_chatgpt/static/description/demo7.png new file mode 100644 index 00000000..d5188c8c Binary files /dev/null and b/app_chatgpt/static/description/demo7.png differ diff --git a/app_chatgpt/static/description/demo8.png b/app_chatgpt/static/description/demo8.png new file mode 100644 index 00000000..9d36e5e9 Binary files /dev/null and b/app_chatgpt/static/description/demo8.png differ diff --git a/app_chatgpt/static/description/demo9.png b/app_chatgpt/static/description/demo9.png new file mode 100644 index 00000000..d7151f7b Binary files /dev/null and b/app_chatgpt/static/description/demo9.png differ diff --git a/app_chatgpt/static/description/demoa.png b/app_chatgpt/static/description/demoa.png new file mode 100644 index 00000000..175866ed Binary files /dev/null and b/app_chatgpt/static/description/demoa.png differ diff --git a/app_chatgpt/static/description/icon.png b/app_chatgpt/static/description/icon.png index ac07f385..dff3b07d 100644 Binary files a/app_chatgpt/static/description/icon.png and b/app_chatgpt/static/description/icon.png differ diff --git a/app_chatgpt/static/description/index.html b/app_chatgpt/static/description/index.html index 939113f0..1557e0ff 100644 --- a/app_chatgpt/static/description/index.html +++ b/app_chatgpt/static/description/index.html @@ -1,189 +1,198 @@
-
-

ChatGPT Robot Multi Chat and Training

-

More powerful features. Multi chatgpt training at the same time. Base on Integrate Odoo with ChatGPT from InTechual Solutions

-

Allows the application to leverage the capabilities of the GPT language model to generate human-like responses, providing a more natural and intuitive user experience

-
- -
-
-
-
-
-
-
-

Configure ChatGPT API Key

-

Get your OpenAPI API Key

-
-

Get your OpenAPI API Key from: https://platform.openai.com/account/api-keys

-
- -
-
-
-
-
-
+
+
+

Latest ChatGPT AI Center. GPT 3.5, Dall-E Image.Multi Robot Support. Chat and Training

+

Support chatgpt 3.5 turbo, text-davinci, DALL·E(Working Now.), Integration All ChatGpt Api

+
+

Lastest update: v16.23.03.05

+
+ +
+
+
+ Key features: +
    +
  • + + 1. Multi ChatGpt openAI robot Connector. Chat and train. +
  • +
  • + + 2. Multi Api support, Chatgpt 3.5 Turbo, Chatgpt 3 Davinci, Chatgpt 2 Code Optimized, 'Dall-E Image. +
  • +
  • + + 3. Bind ChatGpt Api to user. So we can chat to robot user or use ChatGpt Channel for Group Chat. +
  • +
  • + + 4. White and black List for ChatGpt. +
  • +
  • + + 5. Setup Demo Chat time for every new user. +
  • +
  • + + 6. Easy Start and Stop ChatGpt. +
  • +
  • + + 7. Evaluation the ai robot to make better response. This training. +
  • -
    -
    -

    Get Best from ChatGPT

    -
    -

    Give your promts to ChatGPT and get best out of AI.

    -
    - +
  • + + 11. Multi-language Support. Multi-Company Support. +
  • +
  • + + 12. Support Odoo 16,15,14,13,12, Enterprise and Community and odoo.sh Edition. +
  • +
  • + + 13. Full Open Source. +
  • +
+
+
-
-
-
-
-

Training Chatgpt robot

-
-

You can mark the answer from chatGpt as Good / Bad / Neutral / Redundant / Unhelpful.

-
- -
-
-
-
-
-
-
-
-

Requirements

-
-

- openai python library -
sudo python3 -m pip install openai -
- - OR - -
- pip install openai - Note: Contact us if you find any difficulties in setup/installation. -

-
-
-
-
-
-
- -
-
-

Our other apps you may like!

- -
-
-

Support

-

- -

-

- Please contact us if you need customization/support for this module info@intechualsolutions.com -

-

- https://intechualsolutions.com - Support

- Note: We have changed our company name from Ascents Entrepreneurs to InTechual Solutions -

+

1. Multi ChatGpt openAI robot Connector. Chat and train.

+

Goto Setting--> GPT Robot to setup your robot api.

+

Input your api key, And Select the api model you need to use.

+
+ +
+

You can set the Temperature higer for more creative answer.

+
+
+ + +
+
+

2. Multi Api support, Chatgpt 3.5 Turbo, Chatgpt 3 Davinci, Chatgpt 2 Code Optimized, 'Dall-E Image.

+

Choose the model you want to use

+
+ +
+

You can set the Temperature higer for more creative answer.

+
+ +
+
+
+ +
+
+

3. Bind ChatGpt Api to user. So we can chat to robot user or use ChatGpt Channel for Group Chat.

+

Go Settings ->users, bind chatgpt to some user.

+ +
+

So you can have many user, and many chatgpt robot. This provide you an Ai pool.

+
+ +
+

You can set the blacklist to this chatgpt robot to limit request. Also you can setup Demo time for every normal user..

+
+ +
+ +
+ +
+
+

4. White and black List for ChatGpt.

+

5. Setup Demo Chat time for every new user.

+

You can set the blacklist to this chatgpt robot to limit request. Also you can setup Demo time for every normal user..

+
+ +
+
+
+ +
+
+

6. Easy Start and Stop ChatGpt..

+

You can easy chat with the apt robot with odoo IM

+
+ +
+

You can chat with several robot in the same time

+
+ +
+

If you have more than 1 robot in the group. you can @ the specify robot.

+
+ +
+
+
+ + +
+
+

7. Evaluation the ai robot to make better response. This training.

+

You can Evaluation chatgpt's answer. Mark as good for good answer. Mark as back for bad answer.

+

With Evaluation, you can make your ai robot more smart. +

+ +
+
+
+ +
+
+

Multi-language Support..

+

+
+ +
+
+
+ +
+
+
+

Technical Help & Support

+
+
+
+

+ For any type of technical help & support requests, Feel free to contact us

+ + guohuadeng@hotmail.com +

+ Via QQ: 300883 (App user would not get QQ or any other IM support. Only for odoo project customize.)

+ + 300883@qq.com +
+
+

+ Visit our website for more support.

+ + https://www.sunpop.cn +
+
+
+
+

More Powerful addons, Make your odoo very easy to use, easy customize: + Supop.cn Odoo Addons +

+
+
+ diff --git a/app_chatgpt/static/description/src/chatgpt_logo.png b/app_chatgpt/static/description/src/chatgpt_logo.png new file mode 100644 index 00000000..69b6189f Binary files /dev/null and b/app_chatgpt/static/description/src/chatgpt_logo.png differ diff --git a/app_chatgpt/static/description/src/chatgpt_white.png b/app_chatgpt/static/description/src/chatgpt_white.png new file mode 100644 index 00000000..7dabf846 Binary files /dev/null and b/app_chatgpt/static/description/src/chatgpt_white.png differ diff --git a/app_chatgpt/static/description/src/code_bg.gif b/app_chatgpt/static/description/src/code_bg.gif new file mode 100644 index 00000000..a60fe5e9 Binary files /dev/null and b/app_chatgpt/static/description/src/code_bg.gif differ diff --git a/app_chatgpt/views/ai_robot_views.xml b/app_chatgpt/views/ai_robot_views.xml index e7aad6f2..b3c07668 100644 --- a/app_chatgpt/views/ai_robot_views.xml +++ b/app_chatgpt/views/ai_robot_views.xml @@ -7,6 +7,8 @@ + + @@ -26,6 +28,16 @@ + + + +
+ + +
+
diff --git a/app_odoo_customize/static/src/img/flags/en_GB.png b/app_odoo_customize/static/src/img/flags/en_GB.png index 18d5ff99..166fb20e 100644 Binary files a/app_odoo_customize/static/src/img/flags/en_GB.png and b/app_odoo_customize/static/src/img/flags/en_GB.png differ diff --git a/app_odoo_customize/static/src/img/flags/en_US.png b/app_odoo_customize/static/src/img/flags/en_US.png index 5c4f03e2..830d8224 100644 Binary files a/app_odoo_customize/static/src/img/flags/en_US.png and b/app_odoo_customize/static/src/img/flags/en_US.png differ diff --git a/app_odoo_customize/static/src/img/flags/fr_FR.png b/app_odoo_customize/static/src/img/flags/fr_FR.png index ae26d3b9..22b4c411 100644 Binary files a/app_odoo_customize/static/src/img/flags/fr_FR.png and b/app_odoo_customize/static/src/img/flags/fr_FR.png differ diff --git a/app_odoo_customize/static/src/img/flags/zh_CN.png b/app_odoo_customize/static/src/img/flags/zh_CN.png index d969efa0..dd1b0efe 100644 Binary files a/app_odoo_customize/static/src/img/flags/zh_CN.png and b/app_odoo_customize/static/src/img/flags/zh_CN.png differ