├── .env.example ├── req.txt ├── README.md ├── LICENSE ├── .gitignore ├── bot.py └── models.json /.env.example: -------------------------------------------------------------------------------- 1 | TG_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXX 2 | OPENAI_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXX 3 | 4 | ALLOWED_USERS=XXXXXXX,XXXXXXX,XXXXXXX -------------------------------------------------------------------------------- /req.txt: -------------------------------------------------------------------------------- 1 | aiohttp==3.8.4 2 | aiosignal==1.3.1 3 | async-timeout==4.0.2 4 | attrs==22.2.0 5 | certifi==2022.12.7 6 | charset-normalizer==3.0.1 7 | frozenlist==1.3.3 8 | idna==3.4 9 | multidict==6.0.4 10 | openai==0.26.5 11 | pip==22.3.1 12 | pyTelegramBotAPI==4.10.0 13 | requests==2.28.2 14 | setuptools==65.5.1 15 | telebot==0.0.5 16 | tqdm==4.64.1 17 | urllib3==1.26.14 18 | wheel==0.38.4 19 | yarl==1.8.2 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Telegram bot integration for OpenAI ChatGPT 2 | 3 | --- 4 | This repository contains a Telegram bot written in Python and 5 | integrated with the ChatGPT API. It allows users to interact with a virtual 6 | assistant by generating natural language responses. The bot is fully 7 | configurable, allowing users to customize the assistant to their preferences. 8 | 9 | # Installation 10 | 1. Rename the .env.example file to .env and add your own data `TG_API_KEY`, `OPENAI_API_KEY` and `ALLOWED_USERS` 11 | 2. Install all the necessary components: 12 | ```bash 13 | python3 -m pip install --user virtualenv 14 | python3 -m venv env 15 | source env/bin/activate 16 | python3 -m pip install -r req.txt 17 | ``` 18 | 19 | The bot in operation uses a SQLite database as a cold store of submitted data, to provide context for 20 | ChatGPT's queries, and to make these queries more relaxed. 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Sultan Soltanov 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Created by https://www.toptal.com/developers/gitignore/api/python 2 | # Edit at https://www.toptal.com/developers/gitignore?templates=python 3 | 4 | ### Python ### 5 | # Byte-compiled / optimized / DLL files 6 | __pycache__/ 7 | *.py[cod] 8 | *$py.class 9 | 10 | # C extensions 11 | *.so 12 | 13 | # Distribution / packaging 14 | .Python 15 | build/ 16 | develop-eggs/ 17 | dist/ 18 | downloads/ 19 | eggs/ 20 | .eggs/ 21 | lib/ 22 | lib64/ 23 | parts/ 24 | sdist/ 25 | var/ 26 | wheels/ 27 | share/python-wheels/ 28 | *.egg-info/ 29 | .installed.cfg 30 | *.egg 31 | MANIFEST 32 | 33 | # PyInstaller 34 | # Usually these files are written by a python script from a template 35 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 36 | *.manifest 37 | *.spec 38 | 39 | # Installer logs 40 | pip-log.txt 41 | pip-delete-this-directory.txt 42 | 43 | # Unit test / coverage reports 44 | htmlcov/ 45 | .tox/ 46 | .nox/ 47 | .coverage 48 | .coverage.* 49 | .cache 50 | nosetests.xml 51 | coverage.xml 52 | *.cover 53 | *.py,cover 54 | .hypothesis/ 55 | .pytest_cache/ 56 | cover/ 57 | 58 | # Translations 59 | *.mo 60 | *.pot 61 | 62 | # Django stuff: 63 | *.log 64 | local_settings.py 65 | db.sqlite3 66 | db.sqlite3-journal 67 | 68 | # Flask stuff: 69 | instance/ 70 | .webassets-cache 71 | 72 | # Scrapy stuff: 73 | .scrapy 74 | 75 | # Sphinx documentation 76 | docs/_build/ 77 | 78 | # PyBuilder 79 | .pybuilder/ 80 | target/ 81 | 82 | # Jupyter Notebook 83 | .ipynb_checkpoints 84 | 85 | # IPython 86 | profile_default/ 87 | ipython_config.py 88 | 89 | # pyenv 90 | # For a library or package, you might want to ignore these files since the code is 91 | # intended to run in multiple environments; otherwise, check them in: 92 | # .python-version 93 | 94 | # pipenv 95 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 96 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 97 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 98 | # install all needed dependencies. 99 | #Pipfile.lock 100 | 101 | # poetry 102 | # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. 103 | # This is especially recommended for binary packages to ensure reproducibility, and is more 104 | # commonly ignored for libraries. 105 | # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control 106 | #poetry.lock 107 | 108 | # pdm 109 | # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. 110 | #pdm.lock 111 | # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it 112 | # in version control. 113 | # https://pdm.fming.dev/#use-with-ide 114 | .pdm.toml 115 | 116 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm 117 | __pypackages__/ 118 | 119 | # Celery stuff 120 | celerybeat-schedule 121 | celerybeat.pid 122 | 123 | # SageMath parsed files 124 | *.sage.py 125 | 126 | # Environments 127 | .env 128 | .venv 129 | env/ 130 | venv/ 131 | ENV/ 132 | env.bak/ 133 | venv.bak/ 134 | 135 | # Spyder project settings 136 | .spyderproject 137 | .spyproject 138 | 139 | # Rope project settings 140 | .ropeproject 141 | 142 | # mkdocs documentation 143 | /site 144 | 145 | # mypy 146 | .mypy_cache/ 147 | .dmypy.json 148 | dmypy.json 149 | 150 | # Pyre type checker 151 | .pyre/ 152 | 153 | # pytype static type analyzer 154 | .pytype/ 155 | 156 | # Cython debug symbols 157 | cython_debug/ 158 | 159 | # PyCharm 160 | # JetBrains specific template is maintained in a separate JetBrains.gitignore that can 161 | # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore 162 | # and can be added to the global gitignore or merged into this file. For a more nuclear 163 | # option (not recommended) you can uncomment the following to ignore the entire idea folder. 164 | .idea/ 165 | 166 | ### Python Patch ### 167 | # Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration 168 | poetry.toml 169 | 170 | # ruff 171 | .ruff_cache/ 172 | 173 | # SQLite 174 | *.db 175 | 176 | # End of https://www.toptal.com/developers/gitignore/api/python 177 | -------------------------------------------------------------------------------- /bot.py: -------------------------------------------------------------------------------- 1 | import os 2 | import threading 3 | import time 4 | 5 | import telebot 6 | import openai 7 | import logging 8 | import sqlite3 9 | import atexit 10 | 11 | # OpenAI API authorisation data 12 | OPENAI_API_KEY = os.getenv("OPENAI_API_KEY") 13 | openai.api_key = OPENAI_API_KEY 14 | 15 | # Creating TG bot 16 | bot = telebot.TeleBot(os.getenv("TG_API_KEY")) 17 | 18 | # Create logger for bot 19 | logging.basicConfig(filename='bot.log', level=logging.INFO) 20 | 21 | # List of user IDs that are allowed access 22 | # Get the value of the ALLOWED_USERS environment variable 23 | allowed_users = os.getenv("ALLOWED_USERS") 24 | 25 | # Check if an environment variable exists and contains a valid string 26 | if allowed_users and allowed_users.strip(): 27 | allowed_users_list = [int(user_id.strip()) for user_id in allowed_users.split(",")] 28 | else: 29 | allowed_users_list = [] 30 | 31 | MODELS_GPT = "text-davinci-003" 32 | 33 | # Mutex 34 | lock = threading.Lock() 35 | 36 | # Time interval for rate limiting 37 | RATE_LIMIT_INTERVAL = 30 * 60 # 30 min 38 | 39 | # Last request time 40 | last_request_time = time.time() 41 | 42 | MAX_MESSAGE_LENGTH = 4096 43 | 44 | 45 | # Decorator function to check access 46 | def restricted_access(func): 47 | def wrapper(message): 48 | user_id = message.from_user.id 49 | if user_id in ALLOWED_USERS: 50 | return func(message) 51 | else: 52 | bot.reply_to(message, "You do not have access to this bot.") 53 | 54 | return wrapper 55 | 56 | 57 | # Create a local variable for each thread 58 | thread_local = threading.local() 59 | 60 | 61 | # Create a function to retrieve the database connection object for the current thread 62 | def get_conn(): 63 | if not hasattr(thread_local, "conn"): 64 | thread_local.conn = sqlite3.connect('context.db') 65 | return thread_local.conn 66 | 67 | 68 | # Create a table to store the query context 69 | with get_conn() as conn: 70 | c = conn.cursor() 71 | c.execute('''CREATE TABLE IF NOT EXISTS context 72 | (id INTEGER PRIMARY KEY AUTOINCREMENT, user_id INTEGER, text TEXT)''') 73 | conn.commit() 74 | 75 | # Creating a hot cache to store query context 76 | HOT_CACHE_DURATION = 5 * 60 # 5 min 77 | hot_cache = {} 78 | 79 | 80 | # The /start command handler and refresh the hot cache when the bot starts 81 | @bot.message_handler(commands=['start']) 82 | @restricted_access 83 | def start(message): 84 | bot.reply_to(message, "Hi, I'm your helper, ready to work with the OpenAI API!") 85 | user_id = message.from_user.id 86 | # When the bot starts, look for the context in the database to recover the conversation. 87 | with get_conn() as conn: 88 | c = conn.cursor() 89 | c.execute("SELECT text FROM context WHERE user_id=? ORDER BY id DESC LIMIT 1", (user_id,)) 90 | row = c.fetchone() 91 | if row is not None: 92 | hot_cache[user_id] = (row[0], time.time()) 93 | 94 | 95 | # User message handler 96 | @bot.message_handler(func=lambda message: message.text is not None and '/' not in message.text) 97 | @restricted_access 98 | def echo_message(message): 99 | try: 100 | text = message.text 101 | user_id = message.from_user.id 102 | prompt = "" 103 | 104 | # Check if the user has sent too many messages in a short period of time 105 | global last_request_time 106 | 107 | if time.time() - last_request_time < RATE_LIMIT_INTERVAL: 108 | # Retrieve the last saved request context for a given user from the hot cache 109 | prev_text, prev_time = hot_cache.get(user_id, (None, 0)) 110 | 111 | # If the entry is in the cache and the time to send the request does not exceed 5 minutes, use it as 112 | # previous context 113 | if prev_text and time.time() - prev_time < HOT_CACHE_DURATION: 114 | prompt = prev_text + '\n' + text 115 | 116 | else: 117 | # Otherwise query the database to get the last query context for this user 118 | with get_conn() as conn: 119 | c = conn.cursor() 120 | c.execute("SELECT text FROM context WHERE user_id=? ORDER BY id DESC LIMIT 1", (user_id,)) 121 | row = c.fetchone() 122 | prompt = row[0] + '\n' + text if row is not None else text 123 | 124 | # Refreshing the hot cache 125 | hot_cache[user_id] = (prompt, time.time()) 126 | 127 | bot.reply_to(message, "Request accepted for processing, please wait.") 128 | 129 | # Generating a response using the OpenAI AP 130 | response = response_to_gpt(prompt) 131 | 132 | # Splitting response into multiple messages if it exceeds the maximum length allowed by Telegram API 133 | response_text = response.choices[0].text 134 | 135 | while len(response_text) > 0: 136 | response_chunk = response_text[:MAX_MESSAGE_LENGTH] 137 | response_text = response_text[MAX_MESSAGE_LENGTH:] 138 | 139 | # Replying to the user with the current chunk of the response 140 | bot.reply_to(message, response_chunk) 141 | 142 | # Save the query context to the database 143 | with get_conn() as conn: 144 | c = conn.cursor() 145 | c.execute("INSERT INTO context (user_id, text) VALUES (?, ?)", (user_id, text)) 146 | conn.commit() 147 | 148 | except Exception as e: 149 | logging.error(str(e)) 150 | bot.reply_to(message, f"An error occurred while processing the request. Please try again later. \n {e} ") 151 | drop_cache(message) 152 | 153 | 154 | def response_to_gpt(message): 155 | response = openai.Completion.create( 156 | model=MODELS_GPT, 157 | prompt=message, 158 | max_tokens=4000, 159 | temperature=0.2, 160 | 161 | ) 162 | return response 163 | 164 | 165 | # Add a /help command handler 166 | @bot.message_handler(commands=['help']) 167 | def help_message(message): 168 | bot.reply_to(message, 169 | "You can send requests to the OpenAI API through me. Just email me your request and I will send it " 170 | "for processing.") 171 | 172 | 173 | @bot.message_handler(commands=['drop_cache']) 174 | @restricted_access 175 | def drop_cache(message): 176 | user_id = message.from_user.id 177 | 178 | conn = get_conn() 179 | cursor = conn.cursor() 180 | 181 | cursor.execute('DELETE FROM context WHERE user_id=?', (user_id,)) 182 | 183 | hot_cache.clear() 184 | 185 | conn.commit() 186 | bot.send_message(user_id, "Cache dropped.") 187 | 188 | 189 | # Add a function to be called on exit to close the database connection 190 | def close_conn(): 191 | conn = getattr(thread_local, "conn", None) 192 | if conn is not None: 193 | conn.close() 194 | 195 | 196 | # Register a function to be called on exit 197 | atexit.register(conn.close) 198 | 199 | if __name__ == "__main__": 200 | bot.polling(none_stop=True) 201 | -------------------------------------------------------------------------------- /models.json: -------------------------------------------------------------------------------- 1 | { 2 | "object": "list", 3 | "data": [ 4 | { 5 | "id": "babbage", 6 | "object": "model", 7 | "created": 1649358449, 8 | "owned_by": "openai", 9 | "permission": [ 10 | { 11 | "id": "modelperm-49FUp5v084tBB49tC4z8LPH5", 12 | "object": "model_permission", 13 | "created": 1669085501, 14 | "allow_create_engine": false, 15 | "allow_sampling": true, 16 | "allow_logprobs": true, 17 | "allow_search_indices": false, 18 | "allow_view": true, 19 | "allow_fine_tuning": false, 20 | "organization": "*", 21 | "group": null, 22 | "is_blocking": false 23 | } 24 | ], 25 | "root": "babbage", 26 | "parent": null 27 | }, 28 | { 29 | "id": "davinci", 30 | "object": "model", 31 | "created": 1649359874, 32 | "owned_by": "openai", 33 | "permission": [ 34 | { 35 | "id": "modelperm-U6ZwlyAd0LyMk4rcMdz33Yc3", 36 | "object": "model_permission", 37 | "created": 1669066355, 38 | "allow_create_engine": false, 39 | "allow_sampling": true, 40 | "allow_logprobs": true, 41 | "allow_search_indices": false, 42 | "allow_view": true, 43 | "allow_fine_tuning": false, 44 | "organization": "*", 45 | "group": null, 46 | "is_blocking": false 47 | } 48 | ], 49 | "root": "davinci", 50 | "parent": null 51 | }, 52 | { 53 | "id": "text-embedding-ada-002", 54 | "object": "model", 55 | "created": 1671217299, 56 | "owned_by": "openai-internal", 57 | "permission": [ 58 | { 59 | "id": "modelperm-Ad4J5NsqPbNJy0CMGNezXaeo", 60 | "object": "model_permission", 61 | "created": 1672848112, 62 | "allow_create_engine": false, 63 | "allow_sampling": true, 64 | "allow_logprobs": true, 65 | "allow_search_indices": true, 66 | "allow_view": true, 67 | "allow_fine_tuning": false, 68 | "organization": "*", 69 | "group": null, 70 | "is_blocking": false 71 | } 72 | ], 73 | "root": "text-embedding-ada-002", 74 | "parent": null 75 | }, 76 | { 77 | "id": "babbage-code-search-code", 78 | "object": "model", 79 | "created": 1651172509, 80 | "owned_by": "openai-dev", 81 | "permission": [ 82 | { 83 | "id": "modelperm-4qRnA3Hj8HIJbgo0cGbcmErn", 84 | "object": "model_permission", 85 | "created": 1669085863, 86 | "allow_create_engine": false, 87 | "allow_sampling": true, 88 | "allow_logprobs": true, 89 | "allow_search_indices": true, 90 | "allow_view": true, 91 | "allow_fine_tuning": false, 92 | "organization": "*", 93 | "group": null, 94 | "is_blocking": false 95 | } 96 | ], 97 | "root": "babbage-code-search-code", 98 | "parent": null 99 | }, 100 | { 101 | "id": "text-similarity-babbage-001", 102 | "object": "model", 103 | "created": 1651172505, 104 | "owned_by": "openai-dev", 105 | "permission": [ 106 | { 107 | "id": "modelperm-48kcCHhfzvnfY84OtJf5m8Cz", 108 | "object": "model_permission", 109 | "created": 1669081947, 110 | "allow_create_engine": false, 111 | "allow_sampling": true, 112 | "allow_logprobs": true, 113 | "allow_search_indices": true, 114 | "allow_view": true, 115 | "allow_fine_tuning": false, 116 | "organization": "*", 117 | "group": null, 118 | "is_blocking": false 119 | } 120 | ], 121 | "root": "text-similarity-babbage-001", 122 | "parent": null 123 | }, 124 | { 125 | "id": "text-davinci-001", 126 | "object": "model", 127 | "created": 1649364042, 128 | "owned_by": "openai", 129 | "permission": [ 130 | { 131 | "id": "modelperm-MVM5NfoRjXkDve3uQW3YZDDt", 132 | "object": "model_permission", 133 | "created": 1669066355, 134 | "allow_create_engine": false, 135 | "allow_sampling": true, 136 | "allow_logprobs": true, 137 | "allow_search_indices": false, 138 | "allow_view": true, 139 | "allow_fine_tuning": false, 140 | "organization": "*", 141 | "group": null, 142 | "is_blocking": false 143 | } 144 | ], 145 | "root": "text-davinci-001", 146 | "parent": null 147 | }, 148 | { 149 | "id": "ada", 150 | "object": "model", 151 | "created": 1649357491, 152 | "owned_by": "openai", 153 | "permission": [ 154 | { 155 | "id": "modelperm-u0nKN4ub7EVQudgMuvCuvDjc", 156 | "object": "model_permission", 157 | "created": 1675997661, 158 | "allow_create_engine": false, 159 | "allow_sampling": true, 160 | "allow_logprobs": true, 161 | "allow_search_indices": false, 162 | "allow_view": true, 163 | "allow_fine_tuning": false, 164 | "organization": "*", 165 | "group": null, 166 | "is_blocking": false 167 | } 168 | ], 169 | "root": "ada", 170 | "parent": null 171 | }, 172 | { 173 | "id": "curie-instruct-beta", 174 | "object": "model", 175 | "created": 1649364042, 176 | "owned_by": "openai", 177 | "permission": [ 178 | { 179 | "id": "modelperm-JlSyMbxXeFm42SDjN0wTD26Y", 180 | "object": "model_permission", 181 | "created": 1669070162, 182 | "allow_create_engine": false, 183 | "allow_sampling": true, 184 | "allow_logprobs": true, 185 | "allow_search_indices": false, 186 | "allow_view": true, 187 | "allow_fine_tuning": false, 188 | "organization": "*", 189 | "group": null, 190 | "is_blocking": false 191 | } 192 | ], 193 | "root": "curie-instruct-beta", 194 | "parent": null 195 | }, 196 | { 197 | "id": "babbage-code-search-text", 198 | "object": "model", 199 | "created": 1651172509, 200 | "owned_by": "openai-dev", 201 | "permission": [ 202 | { 203 | "id": "modelperm-Lftf8H4ZPDxNxVs0hHPJBUoe", 204 | "object": "model_permission", 205 | "created": 1669085863, 206 | "allow_create_engine": false, 207 | "allow_sampling": true, 208 | "allow_logprobs": true, 209 | "allow_search_indices": true, 210 | "allow_view": true, 211 | "allow_fine_tuning": false, 212 | "organization": "*", 213 | "group": null, 214 | "is_blocking": false 215 | } 216 | ], 217 | "root": "babbage-code-search-text", 218 | "parent": null 219 | }, 220 | { 221 | "id": "babbage-similarity", 222 | "object": "model", 223 | "created": 1651172505, 224 | "owned_by": "openai-dev", 225 | "permission": [ 226 | { 227 | "id": "modelperm-mS20lnPqhebTaFPrcCufyg7m", 228 | "object": "model_permission", 229 | "created": 1669081947, 230 | "allow_create_engine": false, 231 | "allow_sampling": true, 232 | "allow_logprobs": true, 233 | "allow_search_indices": true, 234 | "allow_view": true, 235 | "allow_fine_tuning": false, 236 | "organization": "*", 237 | "group": null, 238 | "is_blocking": false 239 | } 240 | ], 241 | "root": "babbage-similarity", 242 | "parent": null 243 | }, 244 | { 245 | "id": "curie-search-query", 246 | "object": "model", 247 | "created": 1651172509, 248 | "owned_by": "openai-dev", 249 | "permission": [ 250 | { 251 | "id": "modelperm-O30H5MRAHribJNyy87ugfPWF", 252 | "object": "model_permission", 253 | "created": 1669066354, 254 | "allow_create_engine": false, 255 | "allow_sampling": true, 256 | "allow_logprobs": true, 257 | "allow_search_indices": true, 258 | "allow_view": true, 259 | "allow_fine_tuning": false, 260 | "organization": "*", 261 | "group": null, 262 | "is_blocking": false 263 | } 264 | ], 265 | "root": "curie-search-query", 266 | "parent": null 267 | }, 268 | { 269 | "id": "code-search-babbage-text-001", 270 | "object": "model", 271 | "created": 1651172507, 272 | "owned_by": "openai-dev", 273 | "permission": [ 274 | { 275 | "id": "modelperm-EC5ASz4NLChtEV1Cwkmrwm57", 276 | "object": "model_permission", 277 | "created": 1669085863, 278 | "allow_create_engine": false, 279 | "allow_sampling": true, 280 | "allow_logprobs": true, 281 | "allow_search_indices": true, 282 | "allow_view": true, 283 | "allow_fine_tuning": false, 284 | "organization": "*", 285 | "group": null, 286 | "is_blocking": false 287 | } 288 | ], 289 | "root": "code-search-babbage-text-001", 290 | "parent": null 291 | }, 292 | { 293 | "id": "code-cushman-001", 294 | "object": "model", 295 | "created": 1656081837, 296 | "owned_by": "openai", 297 | "permission": [ 298 | { 299 | "id": "modelperm-M6pwNXr8UmY3mqdUEe4VFXdY", 300 | "object": "model_permission", 301 | "created": 1669066355, 302 | "allow_create_engine": false, 303 | "allow_sampling": true, 304 | "allow_logprobs": true, 305 | "allow_search_indices": false, 306 | "allow_view": true, 307 | "allow_fine_tuning": false, 308 | "organization": "*", 309 | "group": null, 310 | "is_blocking": false 311 | } 312 | ], 313 | "root": "code-cushman-001", 314 | "parent": null 315 | }, 316 | { 317 | "id": "code-search-babbage-code-001", 318 | "object": "model", 319 | "created": 1651172507, 320 | "owned_by": "openai-dev", 321 | "permission": [ 322 | { 323 | "id": "modelperm-64LWHdlANgak2rHzc3K5Stt0", 324 | "object": "model_permission", 325 | "created": 1669085864, 326 | "allow_create_engine": false, 327 | "allow_sampling": true, 328 | "allow_logprobs": true, 329 | "allow_search_indices": true, 330 | "allow_view": true, 331 | "allow_fine_tuning": false, 332 | "organization": "*", 333 | "group": null, 334 | "is_blocking": false 335 | } 336 | ], 337 | "root": "code-search-babbage-code-001", 338 | "parent": null 339 | }, 340 | { 341 | "id": "audio-transcribe-deprecated", 342 | "object": "model", 343 | "created": 1674776185, 344 | "owned_by": "openai-internal", 345 | "permission": [ 346 | { 347 | "id": "modelperm-IPCtO1a9wW5TDxGCIqy0iVfK", 348 | "object": "model_permission", 349 | "created": 1674776185, 350 | "allow_create_engine": false, 351 | "allow_sampling": true, 352 | "allow_logprobs": true, 353 | "allow_search_indices": false, 354 | "allow_view": true, 355 | "allow_fine_tuning": false, 356 | "organization": "*", 357 | "group": null, 358 | "is_blocking": false 359 | } 360 | ], 361 | "root": "audio-transcribe-deprecated", 362 | "parent": null 363 | }, 364 | { 365 | "id": "text-ada-001", 366 | "object": "model", 367 | "created": 1649364042, 368 | "owned_by": "openai", 369 | "permission": [ 370 | { 371 | "id": "modelperm-KN5dRBCEW4az6gwcGXkRkMwK", 372 | "object": "model_permission", 373 | "created": 1669088497, 374 | "allow_create_engine": false, 375 | "allow_sampling": true, 376 | "allow_logprobs": true, 377 | "allow_search_indices": false, 378 | "allow_view": true, 379 | "allow_fine_tuning": false, 380 | "organization": "*", 381 | "group": null, 382 | "is_blocking": false 383 | } 384 | ], 385 | "root": "text-ada-001", 386 | "parent": null 387 | }, 388 | { 389 | "id": "text-similarity-ada-001", 390 | "object": "model", 391 | "created": 1651172505, 392 | "owned_by": "openai-dev", 393 | "permission": [ 394 | { 395 | "id": "modelperm-DdCqkqmORpqxqdg4TkFRAgmw", 396 | "object": "model_permission", 397 | "created": 1669092759, 398 | "allow_create_engine": false, 399 | "allow_sampling": true, 400 | "allow_logprobs": true, 401 | "allow_search_indices": true, 402 | "allow_view": true, 403 | "allow_fine_tuning": false, 404 | "organization": "*", 405 | "group": null, 406 | "is_blocking": false 407 | } 408 | ], 409 | "root": "text-similarity-ada-001", 410 | "parent": null 411 | }, 412 | { 413 | "id": "text-davinci-insert-002", 414 | "object": "model", 415 | "created": 1649880484, 416 | "owned_by": "openai", 417 | "permission": [ 418 | { 419 | "id": "modelperm-V5YQoSyiapAf4km5wisXkNXh", 420 | "object": "model_permission", 421 | "created": 1669066354, 422 | "allow_create_engine": false, 423 | "allow_sampling": true, 424 | "allow_logprobs": true, 425 | "allow_search_indices": false, 426 | "allow_view": true, 427 | "allow_fine_tuning": false, 428 | "organization": "*", 429 | "group": null, 430 | "is_blocking": false 431 | } 432 | ], 433 | "root": "text-davinci-insert-002", 434 | "parent": null 435 | }, 436 | { 437 | "id": "ada-code-search-code", 438 | "object": "model", 439 | "created": 1651172505, 440 | "owned_by": "openai-dev", 441 | "permission": [ 442 | { 443 | "id": "modelperm-wa8tg4Pi9QQNaWdjMTM8dkkx", 444 | "object": "model_permission", 445 | "created": 1669087421, 446 | "allow_create_engine": false, 447 | "allow_sampling": true, 448 | "allow_logprobs": true, 449 | "allow_search_indices": true, 450 | "allow_view": true, 451 | "allow_fine_tuning": false, 452 | "organization": "*", 453 | "group": null, 454 | "is_blocking": false 455 | } 456 | ], 457 | "root": "ada-code-search-code", 458 | "parent": null 459 | }, 460 | { 461 | "id": "ada-similarity", 462 | "object": "model", 463 | "created": 1651172507, 464 | "owned_by": "openai-dev", 465 | "permission": [ 466 | { 467 | "id": "modelperm-LtSIwCEReeDcvGTmM13gv6Fg", 468 | "object": "model_permission", 469 | "created": 1669092759, 470 | "allow_create_engine": false, 471 | "allow_sampling": true, 472 | "allow_logprobs": true, 473 | "allow_search_indices": true, 474 | "allow_view": true, 475 | "allow_fine_tuning": false, 476 | "organization": "*", 477 | "group": null, 478 | "is_blocking": false 479 | } 480 | ], 481 | "root": "ada-similarity", 482 | "parent": null 483 | }, 484 | { 485 | "id": "code-search-ada-text-001", 486 | "object": "model", 487 | "created": 1651172507, 488 | "owned_by": "openai-dev", 489 | "permission": [ 490 | { 491 | "id": "modelperm-JBssaJSmbgvJfTkX71y71k2J", 492 | "object": "model_permission", 493 | "created": 1669087421, 494 | "allow_create_engine": false, 495 | "allow_sampling": true, 496 | "allow_logprobs": true, 497 | "allow_search_indices": true, 498 | "allow_view": true, 499 | "allow_fine_tuning": false, 500 | "organization": "*", 501 | "group": null, 502 | "is_blocking": false 503 | } 504 | ], 505 | "root": "code-search-ada-text-001", 506 | "parent": null 507 | }, 508 | { 509 | "id": "text-search-ada-query-001", 510 | "object": "model", 511 | "created": 1651172505, 512 | "owned_by": "openai-dev", 513 | "permission": [ 514 | { 515 | "id": "modelperm-1YiiBMYC8it0mpQCBK7t8uSP", 516 | "object": "model_permission", 517 | "created": 1669092640, 518 | "allow_create_engine": false, 519 | "allow_sampling": true, 520 | "allow_logprobs": true, 521 | "allow_search_indices": true, 522 | "allow_view": true, 523 | "allow_fine_tuning": false, 524 | "organization": "*", 525 | "group": null, 526 | "is_blocking": false 527 | } 528 | ], 529 | "root": "text-search-ada-query-001", 530 | "parent": null 531 | }, 532 | { 533 | "id": "text-curie-001", 534 | "object": "model", 535 | "created": 1649364043, 536 | "owned_by": "openai", 537 | "permission": [ 538 | { 539 | "id": "modelperm-fGAoEKBH01KNZ3zz81Sro34Q", 540 | "object": "model_permission", 541 | "created": 1669066352, 542 | "allow_create_engine": false, 543 | "allow_sampling": true, 544 | "allow_logprobs": true, 545 | "allow_search_indices": false, 546 | "allow_view": true, 547 | "allow_fine_tuning": false, 548 | "organization": "*", 549 | "group": null, 550 | "is_blocking": false 551 | } 552 | ], 553 | "root": "text-curie-001", 554 | "parent": null 555 | }, 556 | { 557 | "id": "text-davinci-edit-001", 558 | "object": "model", 559 | "created": 1649809179, 560 | "owned_by": "openai", 561 | "permission": [ 562 | { 563 | "id": "modelperm-VzNMGrIRm3HxhEl64gkjZdEh", 564 | "object": "model_permission", 565 | "created": 1669066354, 566 | "allow_create_engine": false, 567 | "allow_sampling": true, 568 | "allow_logprobs": true, 569 | "allow_search_indices": false, 570 | "allow_view": true, 571 | "allow_fine_tuning": false, 572 | "organization": "*", 573 | "group": null, 574 | "is_blocking": false 575 | } 576 | ], 577 | "root": "text-davinci-edit-001", 578 | "parent": null 579 | }, 580 | { 581 | "id": "davinci-search-document", 582 | "object": "model", 583 | "created": 1651172509, 584 | "owned_by": "openai-dev", 585 | "permission": [ 586 | { 587 | "id": "modelperm-M43LVJQRGxz6ode34ctLrCaG", 588 | "object": "model_permission", 589 | "created": 1669066355, 590 | "allow_create_engine": false, 591 | "allow_sampling": true, 592 | "allow_logprobs": true, 593 | "allow_search_indices": true, 594 | "allow_view": true, 595 | "allow_fine_tuning": false, 596 | "organization": "*", 597 | "group": null, 598 | "is_blocking": false 599 | } 600 | ], 601 | "root": "davinci-search-document", 602 | "parent": null 603 | }, 604 | { 605 | "id": "ada-code-search-text", 606 | "object": "model", 607 | "created": 1651172510, 608 | "owned_by": "openai-dev", 609 | "permission": [ 610 | { 611 | "id": "modelperm-kFc17wOI4d1FjZEaCqnk4Frg", 612 | "object": "model_permission", 613 | "created": 1669087421, 614 | "allow_create_engine": false, 615 | "allow_sampling": true, 616 | "allow_logprobs": true, 617 | "allow_search_indices": true, 618 | "allow_view": true, 619 | "allow_fine_tuning": false, 620 | "organization": "*", 621 | "group": null, 622 | "is_blocking": false 623 | } 624 | ], 625 | "root": "ada-code-search-text", 626 | "parent": null 627 | }, 628 | { 629 | "id": "text-search-ada-doc-001", 630 | "object": "model", 631 | "created": 1651172507, 632 | "owned_by": "openai-dev", 633 | "permission": [ 634 | { 635 | "id": "modelperm-kbHvYouDlkD78ehcmMOGdKpK", 636 | "object": "model_permission", 637 | "created": 1669092640, 638 | "allow_create_engine": false, 639 | "allow_sampling": true, 640 | "allow_logprobs": true, 641 | "allow_search_indices": true, 642 | "allow_view": true, 643 | "allow_fine_tuning": false, 644 | "organization": "*", 645 | "group": null, 646 | "is_blocking": false 647 | } 648 | ], 649 | "root": "text-search-ada-doc-001", 650 | "parent": null 651 | }, 652 | { 653 | "id": "code-davinci-edit-001", 654 | "object": "model", 655 | "created": 1649880484, 656 | "owned_by": "openai", 657 | "permission": [ 658 | { 659 | "id": "modelperm-WwansDxcKNvZtKugNqJnsvfv", 660 | "object": "model_permission", 661 | "created": 1669066354, 662 | "allow_create_engine": false, 663 | "allow_sampling": true, 664 | "allow_logprobs": true, 665 | "allow_search_indices": false, 666 | "allow_view": true, 667 | "allow_fine_tuning": false, 668 | "organization": "*", 669 | "group": null, 670 | "is_blocking": false 671 | } 672 | ], 673 | "root": "code-davinci-edit-001", 674 | "parent": null 675 | }, 676 | { 677 | "id": "davinci-instruct-beta", 678 | "object": "model", 679 | "created": 1649364042, 680 | "owned_by": "openai", 681 | "permission": [ 682 | { 683 | "id": "modelperm-k9kuMYlfd9nvFiJV2ug0NWws", 684 | "object": "model_permission", 685 | "created": 1669066356, 686 | "allow_create_engine": false, 687 | "allow_sampling": true, 688 | "allow_logprobs": true, 689 | "allow_search_indices": false, 690 | "allow_view": true, 691 | "allow_fine_tuning": false, 692 | "organization": "*", 693 | "group": null, 694 | "is_blocking": false 695 | } 696 | ], 697 | "root": "davinci-instruct-beta", 698 | "parent": null 699 | }, 700 | { 701 | "id": "text-similarity-curie-001", 702 | "object": "model", 703 | "created": 1651172507, 704 | "owned_by": "openai-dev", 705 | "permission": [ 706 | { 707 | "id": "modelperm-6dgTTyXrZE7d53Licw4hYkvd", 708 | "object": "model_permission", 709 | "created": 1669079883, 710 | "allow_create_engine": false, 711 | "allow_sampling": true, 712 | "allow_logprobs": true, 713 | "allow_search_indices": true, 714 | "allow_view": true, 715 | "allow_fine_tuning": false, 716 | "organization": "*", 717 | "group": null, 718 | "is_blocking": false 719 | } 720 | ], 721 | "root": "text-similarity-curie-001", 722 | "parent": null 723 | }, 724 | { 725 | "id": "code-search-ada-code-001", 726 | "object": "model", 727 | "created": 1651172507, 728 | "owned_by": "openai-dev", 729 | "permission": [ 730 | { 731 | "id": "modelperm-8soch45iiGvux5Fg1ORjdC4s", 732 | "object": "model_permission", 733 | "created": 1669087421, 734 | "allow_create_engine": false, 735 | "allow_sampling": true, 736 | "allow_logprobs": true, 737 | "allow_search_indices": true, 738 | "allow_view": true, 739 | "allow_fine_tuning": false, 740 | "organization": "*", 741 | "group": null, 742 | "is_blocking": false 743 | } 744 | ], 745 | "root": "code-search-ada-code-001", 746 | "parent": null 747 | }, 748 | { 749 | "id": "ada-search-query", 750 | "object": "model", 751 | "created": 1651172505, 752 | "owned_by": "openai-dev", 753 | "permission": [ 754 | { 755 | "id": "modelperm-b753xmIzAUkluQ1L20eDZLtQ", 756 | "object": "model_permission", 757 | "created": 1669092640, 758 | "allow_create_engine": false, 759 | "allow_sampling": true, 760 | "allow_logprobs": true, 761 | "allow_search_indices": true, 762 | "allow_view": true, 763 | "allow_fine_tuning": false, 764 | "organization": "*", 765 | "group": null, 766 | "is_blocking": false 767 | } 768 | ], 769 | "root": "ada-search-query", 770 | "parent": null 771 | }, 772 | { 773 | "id": "text-search-davinci-query-001", 774 | "object": "model", 775 | "created": 1651172505, 776 | "owned_by": "openai-dev", 777 | "permission": [ 778 | { 779 | "id": "modelperm-9McKbsEYSaDshU9M3bp6ejUb", 780 | "object": "model_permission", 781 | "created": 1669066353, 782 | "allow_create_engine": false, 783 | "allow_sampling": true, 784 | "allow_logprobs": true, 785 | "allow_search_indices": true, 786 | "allow_view": true, 787 | "allow_fine_tuning": false, 788 | "organization": "*", 789 | "group": null, 790 | "is_blocking": false 791 | } 792 | ], 793 | "root": "text-search-davinci-query-001", 794 | "parent": null 795 | }, 796 | { 797 | "id": "code-davinci-002", 798 | "object": "model", 799 | "created": 1649880485, 800 | "owned_by": "openai", 801 | "permission": [ 802 | { 803 | "id": "modelperm-8akmTLnpG27YnWXC959AzZL9", 804 | "object": "model_permission", 805 | "created": 1676580880, 806 | "allow_create_engine": false, 807 | "allow_sampling": true, 808 | "allow_logprobs": true, 809 | "allow_search_indices": false, 810 | "allow_view": true, 811 | "allow_fine_tuning": false, 812 | "organization": "*", 813 | "group": null, 814 | "is_blocking": false 815 | } 816 | ], 817 | "root": "code-davinci-002", 818 | "parent": null 819 | }, 820 | { 821 | "id": "text-davinci-003", 822 | "object": "model", 823 | "created": 1669599635, 824 | "owned_by": "openai-internal", 825 | "permission": [ 826 | { 827 | "id": "modelperm-uMf6VYZzCViLNDAJNdPIL0pI", 828 | "object": "model_permission", 829 | "created": 1676599391, 830 | "allow_create_engine": false, 831 | "allow_sampling": true, 832 | "allow_logprobs": true, 833 | "allow_search_indices": false, 834 | "allow_view": true, 835 | "allow_fine_tuning": false, 836 | "organization": "*", 837 | "group": null, 838 | "is_blocking": false 839 | } 840 | ], 841 | "root": "text-davinci-003", 842 | "parent": null 843 | }, 844 | { 845 | "id": "davinci-search-query", 846 | "object": "model", 847 | "created": 1651172505, 848 | "owned_by": "openai-dev", 849 | "permission": [ 850 | { 851 | "id": "modelperm-lYkiTZMmJMWm8jvkPx2duyHE", 852 | "object": "model_permission", 853 | "created": 1669066353, 854 | "allow_create_engine": false, 855 | "allow_sampling": true, 856 | "allow_logprobs": true, 857 | "allow_search_indices": true, 858 | "allow_view": true, 859 | "allow_fine_tuning": false, 860 | "organization": "*", 861 | "group": null, 862 | "is_blocking": false 863 | } 864 | ], 865 | "root": "davinci-search-query", 866 | "parent": null 867 | }, 868 | { 869 | "id": "text-davinci-insert-001", 870 | "object": "model", 871 | "created": 1649880484, 872 | "owned_by": "openai", 873 | "permission": [ 874 | { 875 | "id": "modelperm-3gRQMBOMoccZIURE3ZxboZWA", 876 | "object": "model_permission", 877 | "created": 1669066354, 878 | "allow_create_engine": false, 879 | "allow_sampling": true, 880 | "allow_logprobs": true, 881 | "allow_search_indices": false, 882 | "allow_view": true, 883 | "allow_fine_tuning": false, 884 | "organization": "*", 885 | "group": null, 886 | "is_blocking": false 887 | } 888 | ], 889 | "root": "text-davinci-insert-001", 890 | "parent": null 891 | }, 892 | { 893 | "id": "babbage-search-document", 894 | "object": "model", 895 | "created": 1651172510, 896 | "owned_by": "openai-dev", 897 | "permission": [ 898 | { 899 | "id": "modelperm-5qFV9kxCRGKIXpBEP75chmp7", 900 | "object": "model_permission", 901 | "created": 1669084981, 902 | "allow_create_engine": false, 903 | "allow_sampling": true, 904 | "allow_logprobs": true, 905 | "allow_search_indices": true, 906 | "allow_view": true, 907 | "allow_fine_tuning": false, 908 | "organization": "*", 909 | "group": null, 910 | "is_blocking": false 911 | } 912 | ], 913 | "root": "babbage-search-document", 914 | "parent": null 915 | }, 916 | { 917 | "id": "ada-search-document", 918 | "object": "model", 919 | "created": 1651172507, 920 | "owned_by": "openai-dev", 921 | "permission": [ 922 | { 923 | "id": "modelperm-8qUMuMAbo4EwedbGamV7e9hq", 924 | "object": "model_permission", 925 | "created": 1669092640, 926 | "allow_create_engine": false, 927 | "allow_sampling": true, 928 | "allow_logprobs": true, 929 | "allow_search_indices": true, 930 | "allow_view": true, 931 | "allow_fine_tuning": false, 932 | "organization": "*", 933 | "group": null, 934 | "is_blocking": false 935 | } 936 | ], 937 | "root": "ada-search-document", 938 | "parent": null 939 | }, 940 | { 941 | "id": "text-search-babbage-doc-001", 942 | "object": "model", 943 | "created": 1651172509, 944 | "owned_by": "openai-dev", 945 | "permission": [ 946 | { 947 | "id": "modelperm-ao2r26P2Th7nhRFleHwy2gn5", 948 | "object": "model_permission", 949 | "created": 1669084981, 950 | "allow_create_engine": false, 951 | "allow_sampling": true, 952 | "allow_logprobs": true, 953 | "allow_search_indices": true, 954 | "allow_view": true, 955 | "allow_fine_tuning": false, 956 | "organization": "*", 957 | "group": null, 958 | "is_blocking": false 959 | } 960 | ], 961 | "root": "text-search-babbage-doc-001", 962 | "parent": null 963 | }, 964 | { 965 | "id": "text-davinci-002", 966 | "object": "model", 967 | "created": 1649880484, 968 | "owned_by": "openai", 969 | "permission": [ 970 | { 971 | "id": "modelperm-kOLsgLs7IgI9PTPI245IRWZH", 972 | "object": "model_permission", 973 | "created": 1676585871, 974 | "allow_create_engine": false, 975 | "allow_sampling": true, 976 | "allow_logprobs": true, 977 | "allow_search_indices": false, 978 | "allow_view": true, 979 | "allow_fine_tuning": false, 980 | "organization": "*", 981 | "group": null, 982 | "is_blocking": false 983 | } 984 | ], 985 | "root": "text-davinci-002", 986 | "parent": null 987 | }, 988 | { 989 | "id": "text-search-curie-doc-001", 990 | "object": "model", 991 | "created": 1651172509, 992 | "owned_by": "openai-dev", 993 | "permission": [ 994 | { 995 | "id": "modelperm-zjXVr8IzHdqV5Qtg5lgxS7Ci", 996 | "object": "model_permission", 997 | "created": 1669066353, 998 | "allow_create_engine": false, 999 | "allow_sampling": true, 1000 | "allow_logprobs": true, 1001 | "allow_search_indices": true, 1002 | "allow_view": true, 1003 | "allow_fine_tuning": false, 1004 | "organization": "*", 1005 | "group": null, 1006 | "is_blocking": false 1007 | } 1008 | ], 1009 | "root": "text-search-curie-doc-001", 1010 | "parent": null 1011 | }, 1012 | { 1013 | "id": "text-search-curie-query-001", 1014 | "object": "model", 1015 | "created": 1651172509, 1016 | "owned_by": "openai-dev", 1017 | "permission": [ 1018 | { 1019 | "id": "modelperm-a58jAWPMqgJQffbNus8is1EM", 1020 | "object": "model_permission", 1021 | "created": 1669066357, 1022 | "allow_create_engine": false, 1023 | "allow_sampling": true, 1024 | "allow_logprobs": true, 1025 | "allow_search_indices": true, 1026 | "allow_view": true, 1027 | "allow_fine_tuning": false, 1028 | "organization": "*", 1029 | "group": null, 1030 | "is_blocking": false 1031 | } 1032 | ], 1033 | "root": "text-search-curie-query-001", 1034 | "parent": null 1035 | }, 1036 | { 1037 | "id": "babbage-search-query", 1038 | "object": "model", 1039 | "created": 1651172509, 1040 | "owned_by": "openai-dev", 1041 | "permission": [ 1042 | { 1043 | "id": "modelperm-wSs1hMXDKsrcErlbN8HmzlLE", 1044 | "object": "model_permission", 1045 | "created": 1669084981, 1046 | "allow_create_engine": false, 1047 | "allow_sampling": true, 1048 | "allow_logprobs": true, 1049 | "allow_search_indices": true, 1050 | "allow_view": true, 1051 | "allow_fine_tuning": false, 1052 | "organization": "*", 1053 | "group": null, 1054 | "is_blocking": false 1055 | } 1056 | ], 1057 | "root": "babbage-search-query", 1058 | "parent": null 1059 | }, 1060 | { 1061 | "id": "text-babbage-001", 1062 | "object": "model", 1063 | "created": 1649364043, 1064 | "owned_by": "openai", 1065 | "permission": [ 1066 | { 1067 | "id": "modelperm-a3Ph5FIBbJxsoA4wvx7VYC7R", 1068 | "object": "model_permission", 1069 | "created": 1675105935, 1070 | "allow_create_engine": false, 1071 | "allow_sampling": true, 1072 | "allow_logprobs": true, 1073 | "allow_search_indices": false, 1074 | "allow_view": true, 1075 | "allow_fine_tuning": false, 1076 | "organization": "*", 1077 | "group": null, 1078 | "is_blocking": false 1079 | } 1080 | ], 1081 | "root": "text-babbage-001", 1082 | "parent": null 1083 | }, 1084 | { 1085 | "id": "text-search-davinci-doc-001", 1086 | "object": "model", 1087 | "created": 1651172505, 1088 | "owned_by": "openai-dev", 1089 | "permission": [ 1090 | { 1091 | "id": "modelperm-qhSf1j2MJMujcu3t7cHnF1DN", 1092 | "object": "model_permission", 1093 | "created": 1669066353, 1094 | "allow_create_engine": false, 1095 | "allow_sampling": true, 1096 | "allow_logprobs": true, 1097 | "allow_search_indices": true, 1098 | "allow_view": true, 1099 | "allow_fine_tuning": false, 1100 | "organization": "*", 1101 | "group": null, 1102 | "is_blocking": false 1103 | } 1104 | ], 1105 | "root": "text-search-davinci-doc-001", 1106 | "parent": null 1107 | }, 1108 | { 1109 | "id": "text-search-babbage-query-001", 1110 | "object": "model", 1111 | "created": 1651172509, 1112 | "owned_by": "openai-dev", 1113 | "permission": [ 1114 | { 1115 | "id": "modelperm-Kg70kkFxD93QQqsVe4Zw8vjc", 1116 | "object": "model_permission", 1117 | "created": 1669084981, 1118 | "allow_create_engine": false, 1119 | "allow_sampling": true, 1120 | "allow_logprobs": true, 1121 | "allow_search_indices": true, 1122 | "allow_view": true, 1123 | "allow_fine_tuning": false, 1124 | "organization": "*", 1125 | "group": null, 1126 | "is_blocking": false 1127 | } 1128 | ], 1129 | "root": "text-search-babbage-query-001", 1130 | "parent": null 1131 | }, 1132 | { 1133 | "id": "curie-similarity", 1134 | "object": "model", 1135 | "created": 1651172510, 1136 | "owned_by": "openai-dev", 1137 | "permission": [ 1138 | { 1139 | "id": "modelperm-zhWKExSloaQiJgzjVHFmh2wR", 1140 | "object": "model_permission", 1141 | "created": 1675106290, 1142 | "allow_create_engine": false, 1143 | "allow_sampling": true, 1144 | "allow_logprobs": true, 1145 | "allow_search_indices": true, 1146 | "allow_view": true, 1147 | "allow_fine_tuning": false, 1148 | "organization": "*", 1149 | "group": null, 1150 | "is_blocking": false 1151 | } 1152 | ], 1153 | "root": "curie-similarity", 1154 | "parent": null 1155 | }, 1156 | { 1157 | "id": "curie-search-document", 1158 | "object": "model", 1159 | "created": 1651172508, 1160 | "owned_by": "openai-dev", 1161 | "permission": [ 1162 | { 1163 | "id": "modelperm-1xwmXNDpvKlQj3erOEVKZVjO", 1164 | "object": "model_permission", 1165 | "created": 1669066353, 1166 | "allow_create_engine": false, 1167 | "allow_sampling": true, 1168 | "allow_logprobs": true, 1169 | "allow_search_indices": true, 1170 | "allow_view": true, 1171 | "allow_fine_tuning": false, 1172 | "organization": "*", 1173 | "group": null, 1174 | "is_blocking": false 1175 | } 1176 | ], 1177 | "root": "curie-search-document", 1178 | "parent": null 1179 | }, 1180 | { 1181 | "id": "curie", 1182 | "object": "model", 1183 | "created": 1649359874, 1184 | "owned_by": "openai", 1185 | "permission": [ 1186 | { 1187 | "id": "modelperm-oPaljeveTjEIDbhDjzFiyf4V", 1188 | "object": "model_permission", 1189 | "created": 1675106503, 1190 | "allow_create_engine": false, 1191 | "allow_sampling": true, 1192 | "allow_logprobs": true, 1193 | "allow_search_indices": false, 1194 | "allow_view": true, 1195 | "allow_fine_tuning": false, 1196 | "organization": "*", 1197 | "group": null, 1198 | "is_blocking": false 1199 | } 1200 | ], 1201 | "root": "curie", 1202 | "parent": null 1203 | }, 1204 | { 1205 | "id": "text-similarity-davinci-001", 1206 | "object": "model", 1207 | "created": 1651172505, 1208 | "owned_by": "openai-dev", 1209 | "permission": [ 1210 | { 1211 | "id": "modelperm-OvmcfYoq5V9SF9xTYw1Oz6Ue", 1212 | "object": "model_permission", 1213 | "created": 1669066356, 1214 | "allow_create_engine": false, 1215 | "allow_sampling": true, 1216 | "allow_logprobs": true, 1217 | "allow_search_indices": true, 1218 | "allow_view": true, 1219 | "allow_fine_tuning": false, 1220 | "organization": "*", 1221 | "group": null, 1222 | "is_blocking": false 1223 | } 1224 | ], 1225 | "root": "text-similarity-davinci-001", 1226 | "parent": null 1227 | }, 1228 | { 1229 | "id": "davinci-similarity", 1230 | "object": "model", 1231 | "created": 1651172509, 1232 | "owned_by": "openai-dev", 1233 | "permission": [ 1234 | { 1235 | "id": "modelperm-lYYgng3LM0Y97HvB5CDc8no2", 1236 | "object": "model_permission", 1237 | "created": 1669066353, 1238 | "allow_create_engine": false, 1239 | "allow_sampling": true, 1240 | "allow_logprobs": true, 1241 | "allow_search_indices": true, 1242 | "allow_view": true, 1243 | "allow_fine_tuning": false, 1244 | "organization": "*", 1245 | "group": null, 1246 | "is_blocking": false 1247 | } 1248 | ], 1249 | "root": "davinci-similarity", 1250 | "parent": null 1251 | }, 1252 | { 1253 | "id": "cushman:2020-05-03", 1254 | "object": "model", 1255 | "created": 1590625110, 1256 | "owned_by": "system", 1257 | "permission": [ 1258 | { 1259 | "id": "snapperm-FAup8P1KqclNlTsunLDRiesT", 1260 | "object": "model_permission", 1261 | "created": 1590625111, 1262 | "allow_create_engine": false, 1263 | "allow_sampling": true, 1264 | "allow_logprobs": true, 1265 | "allow_search_indices": false, 1266 | "allow_view": true, 1267 | "allow_fine_tuning": true, 1268 | "organization": "*", 1269 | "group": null, 1270 | "is_blocking": false 1271 | } 1272 | ], 1273 | "root": "cushman:2020-05-03", 1274 | "parent": null 1275 | }, 1276 | { 1277 | "id": "ada:2020-05-03", 1278 | "object": "model", 1279 | "created": 1607631625, 1280 | "owned_by": "system", 1281 | "permission": [ 1282 | { 1283 | "id": "snapperm-9TYofAqUs54vytKYL0IX91rX", 1284 | "object": "model_permission", 1285 | "created": 1607631626, 1286 | "allow_create_engine": false, 1287 | "allow_sampling": true, 1288 | "allow_logprobs": true, 1289 | "allow_search_indices": false, 1290 | "allow_view": true, 1291 | "allow_fine_tuning": false, 1292 | "organization": "*", 1293 | "group": null, 1294 | "is_blocking": false 1295 | } 1296 | ], 1297 | "root": "ada:2020-05-03", 1298 | "parent": null 1299 | }, 1300 | { 1301 | "id": "babbage:2020-05-03", 1302 | "object": "model", 1303 | "created": 1607632611, 1304 | "owned_by": "system", 1305 | "permission": [ 1306 | { 1307 | "id": "snapperm-jaLAcmyyNuaVmalCE1BGTGwf", 1308 | "object": "model_permission", 1309 | "created": 1607632613, 1310 | "allow_create_engine": false, 1311 | "allow_sampling": true, 1312 | "allow_logprobs": true, 1313 | "allow_search_indices": false, 1314 | "allow_view": true, 1315 | "allow_fine_tuning": false, 1316 | "organization": "*", 1317 | "group": null, 1318 | "is_blocking": false 1319 | } 1320 | ], 1321 | "root": "babbage:2020-05-03", 1322 | "parent": null 1323 | }, 1324 | { 1325 | "id": "curie:2020-05-03", 1326 | "object": "model", 1327 | "created": 1607632725, 1328 | "owned_by": "system", 1329 | "permission": [ 1330 | { 1331 | "id": "snapperm-bt6R8PWbB2SwK5evFo0ZxSs4", 1332 | "object": "model_permission", 1333 | "created": 1607632727, 1334 | "allow_create_engine": false, 1335 | "allow_sampling": true, 1336 | "allow_logprobs": true, 1337 | "allow_search_indices": false, 1338 | "allow_view": true, 1339 | "allow_fine_tuning": false, 1340 | "organization": "*", 1341 | "group": null, 1342 | "is_blocking": false 1343 | } 1344 | ], 1345 | "root": "curie:2020-05-03", 1346 | "parent": null 1347 | }, 1348 | { 1349 | "id": "davinci:2020-05-03", 1350 | "object": "model", 1351 | "created": 1607640163, 1352 | "owned_by": "system", 1353 | "permission": [ 1354 | { 1355 | "id": "snapperm-99cbfQTYDVeLkTYndX3UMpSr", 1356 | "object": "model_permission", 1357 | "created": 1607640164, 1358 | "allow_create_engine": false, 1359 | "allow_sampling": true, 1360 | "allow_logprobs": true, 1361 | "allow_search_indices": false, 1362 | "allow_view": true, 1363 | "allow_fine_tuning": false, 1364 | "organization": "*", 1365 | "group": null, 1366 | "is_blocking": false 1367 | } 1368 | ], 1369 | "root": "davinci:2020-05-03", 1370 | "parent": null 1371 | }, 1372 | { 1373 | "id": "if-davinci-v2", 1374 | "object": "model", 1375 | "created": 1610745990, 1376 | "owned_by": "openai", 1377 | "permission": [ 1378 | { 1379 | "id": "snapperm-58q0TdK2K4kMgL3MoHvGWMlH", 1380 | "object": "model_permission", 1381 | "created": 1610746036, 1382 | "allow_create_engine": false, 1383 | "allow_sampling": true, 1384 | "allow_logprobs": true, 1385 | "allow_search_indices": false, 1386 | "allow_view": true, 1387 | "allow_fine_tuning": false, 1388 | "organization": "*", 1389 | "group": null, 1390 | "is_blocking": false 1391 | } 1392 | ], 1393 | "root": "if-davinci-v2", 1394 | "parent": null 1395 | }, 1396 | { 1397 | "id": "if-curie-v2", 1398 | "object": "model", 1399 | "created": 1610745968, 1400 | "owned_by": "openai", 1401 | "permission": [ 1402 | { 1403 | "id": "snapperm-fwAseHVq6NGe6Ple6tKfzRSK", 1404 | "object": "model_permission", 1405 | "created": 1610746043, 1406 | "allow_create_engine": false, 1407 | "allow_sampling": true, 1408 | "allow_logprobs": true, 1409 | "allow_search_indices": false, 1410 | "allow_view": true, 1411 | "allow_fine_tuning": false, 1412 | "organization": "*", 1413 | "group": null, 1414 | "is_blocking": false 1415 | } 1416 | ], 1417 | "root": "if-curie-v2", 1418 | "parent": null 1419 | }, 1420 | { 1421 | "id": "if-davinci:3.0.0", 1422 | "object": "model", 1423 | "created": 1629420755, 1424 | "owned_by": "openai", 1425 | "permission": [ 1426 | { 1427 | "id": "snapperm-T53lssiyMWwiuJwhyO9ic53z", 1428 | "object": "model_permission", 1429 | "created": 1629421809, 1430 | "allow_create_engine": false, 1431 | "allow_sampling": true, 1432 | "allow_logprobs": true, 1433 | "allow_search_indices": false, 1434 | "allow_view": true, 1435 | "allow_fine_tuning": true, 1436 | "organization": "*", 1437 | "group": null, 1438 | "is_blocking": false 1439 | } 1440 | ], 1441 | "root": "if-davinci:3.0.0", 1442 | "parent": null 1443 | }, 1444 | { 1445 | "id": "davinci-if:3.0.0", 1446 | "object": "model", 1447 | "created": 1629498070, 1448 | "owned_by": "openai", 1449 | "permission": [ 1450 | { 1451 | "id": "snapperm-s6ZIAVMwlZwrLGGClTXqSK3Q", 1452 | "object": "model_permission", 1453 | "created": 1629498084, 1454 | "allow_create_engine": false, 1455 | "allow_sampling": true, 1456 | "allow_logprobs": true, 1457 | "allow_search_indices": false, 1458 | "allow_view": true, 1459 | "allow_fine_tuning": true, 1460 | "organization": "*", 1461 | "group": null, 1462 | "is_blocking": false 1463 | } 1464 | ], 1465 | "root": "davinci-if:3.0.0", 1466 | "parent": null 1467 | }, 1468 | { 1469 | "id": "davinci-instruct-beta:2.0.0", 1470 | "object": "model", 1471 | "created": 1629501914, 1472 | "owned_by": "openai", 1473 | "permission": [ 1474 | { 1475 | "id": "snapperm-c70U4TBfiOD839xptP5pJzyc", 1476 | "object": "model_permission", 1477 | "created": 1629501939, 1478 | "allow_create_engine": false, 1479 | "allow_sampling": true, 1480 | "allow_logprobs": true, 1481 | "allow_search_indices": false, 1482 | "allow_view": true, 1483 | "allow_fine_tuning": true, 1484 | "organization": "*", 1485 | "group": null, 1486 | "is_blocking": false 1487 | } 1488 | ], 1489 | "root": "davinci-instruct-beta:2.0.0", 1490 | "parent": null 1491 | }, 1492 | { 1493 | "id": "text-ada:001", 1494 | "object": "model", 1495 | "created": 1641949608, 1496 | "owned_by": "system", 1497 | "permission": [ 1498 | { 1499 | "id": "snapperm-d2PSnwFG1Yn9of6PvrrhkBcU", 1500 | "object": "model_permission", 1501 | "created": 1641949610, 1502 | "allow_create_engine": false, 1503 | "allow_sampling": true, 1504 | "allow_logprobs": true, 1505 | "allow_search_indices": false, 1506 | "allow_view": true, 1507 | "allow_fine_tuning": false, 1508 | "organization": "*", 1509 | "group": null, 1510 | "is_blocking": false 1511 | } 1512 | ], 1513 | "root": "text-ada:001", 1514 | "parent": null 1515 | }, 1516 | { 1517 | "id": "text-davinci:001", 1518 | "object": "model", 1519 | "created": 1641943966, 1520 | "owned_by": "system", 1521 | "permission": [ 1522 | { 1523 | "id": "snapperm-Fj1O3zkKXOQy6AkcfQXRKcWA", 1524 | "object": "model_permission", 1525 | "created": 1641944340, 1526 | "allow_create_engine": false, 1527 | "allow_sampling": true, 1528 | "allow_logprobs": true, 1529 | "allow_search_indices": false, 1530 | "allow_view": true, 1531 | "allow_fine_tuning": false, 1532 | "organization": "*", 1533 | "group": null, 1534 | "is_blocking": false 1535 | } 1536 | ], 1537 | "root": "text-davinci:001", 1538 | "parent": null 1539 | }, 1540 | { 1541 | "id": "text-curie:001", 1542 | "object": "model", 1543 | "created": 1641955047, 1544 | "owned_by": "system", 1545 | "permission": [ 1546 | { 1547 | "id": "snapperm-BI9TAT6SCj43JRsUb9CYadsz", 1548 | "object": "model_permission", 1549 | "created": 1641955123, 1550 | "allow_create_engine": false, 1551 | "allow_sampling": true, 1552 | "allow_logprobs": true, 1553 | "allow_search_indices": false, 1554 | "allow_view": true, 1555 | "allow_fine_tuning": false, 1556 | "organization": "*", 1557 | "group": null, 1558 | "is_blocking": false 1559 | } 1560 | ], 1561 | "root": "text-curie:001", 1562 | "parent": null 1563 | }, 1564 | { 1565 | "id": "text-babbage:001", 1566 | "object": "model", 1567 | "created": 1642018370, 1568 | "owned_by": "openai", 1569 | "permission": [ 1570 | { 1571 | "id": "snapperm-7oP3WFr9x7qf5xb3eZrVABAH", 1572 | "object": "model_permission", 1573 | "created": 1642018480, 1574 | "allow_create_engine": false, 1575 | "allow_sampling": true, 1576 | "allow_logprobs": true, 1577 | "allow_search_indices": false, 1578 | "allow_view": true, 1579 | "allow_fine_tuning": false, 1580 | "organization": "*", 1581 | "group": null, 1582 | "is_blocking": false 1583 | } 1584 | ], 1585 | "root": "text-babbage:001", 1586 | "parent": null 1587 | } 1588 | ] 1589 | } 1590 | --------------------------------------------------------------------------------