diff --git a/README.md b/README.md index e2fdf9b9..8c8b2c52 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,11 @@ git subtree pull --prefix src/awesome-chatgpt-prompts https://github.com/f/aweso docker compose up -d ``` +## Mocked api +If you don't want to wait for the api to respond, you can use the mocked api instead. To use the mocked api create a `.env` at root of the project +with key `VITE_API_BASE=http://localhost:5174` in it. You customize the mocked api response by including d followed by a number, it will delay the response X seconds. +You can customize the length of the response by including l followed by a number, it will return a response with X sentences. For example `d2 l10` = 2 seconds delay and 10 sentences response. + ## Desktop app You can also use ChatGPT-web as a desktop app. To do so, [install Rust first](https://www.rust-lang.org/tools/install). Then, simply run `npm run tauri dev` for the development version or `npm run tauri build` for the production version of the desktop app. The desktop app will be built in the `src-tauri/target` folder. diff --git a/docker-compose.yml b/docker-compose.yml index 65c9d8bb..b2115b92 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,8 +4,19 @@ services: chatgpt_web: container_name: chatgpt_web restart: always + env_file: + - .env ports: - 5173:5173 build: context: "." dockerfile: Dockerfile + + mocked_api: + container_name: mocked_api + build: + context: "." + dockerfile: mocked_api/Dockerfile-mockapi + restart: always + ports: + - 5174:5174 diff --git a/mocked_api/Dockerfile-mockapi b/mocked_api/Dockerfile-mockapi new file mode 100644 index 00000000..af0fbbce --- /dev/null +++ b/mocked_api/Dockerfile-mockapi @@ -0,0 +1,9 @@ +FROM python:3.10-slim-buster +WORKDIR /work + +RUN pip install fastapi uvicorn lorem-text +COPY mocked_api/mock_api.py . +COPY mocked_api/models_response.json . + +CMD ["uvicorn", "mock_api:app", "--host", "0.0.0.0", "--port", "5174"] + diff --git a/mocked_api/mock_api.py b/mocked_api/mock_api.py new file mode 100644 index 00000000..9ee66f77 --- /dev/null +++ b/mocked_api/mock_api.py @@ -0,0 +1,73 @@ +import json +import re +import time +from lorem_text import lorem + +from fastapi import FastAPI +from fastapi.middleware.cors import CORSMiddleware + +app = FastAPI() + +# add CORS middleware to allow requests from any origin +app.add_middleware( + CORSMiddleware, + allow_origins=["*"], + allow_methods=["*"], + allow_headers=["*"], +) + + +# Define a route to handle POST requests +@app.post("/v1/chat/completions") +async def post_data(data: dict): + """Returns mock responses for testing purposes.""" + + messages = data['messages'] + instructions = messages[-1]['content'] + + delay = 0 + lines = None + answer = 'Default mock answer from mocked API' + + try: + delay = re.findall(r'(?<=d)\d+',instructions)[0] + except: + pass + + try: + lines = re.findall(r'(?<=l)\d+',instructions)[0] + except: + pass + + + if delay: + time.sleep(int(delay)) + + if lines: + answer = "\n".join([lorem.sentence() for _ in range(int(lines))]) + + response = { + "id": 0, + "choices": [{ + "index": 0, + "finish_reason": "stop", + "message": {"content": answer,"role": "assistant"} + }] + } + return response + + +@app.get('/v1/models') +async def list_models(): + """Returns a list of models to get app to work.""" + with open('/work/models_response.json') as f: + result = json.load(f) + + return result + + +@app.post('/') +async def post_data(data: dict): + """Basic route for testing the API works""" + result = {"message": "Data received", "data": data} + return result diff --git a/mocked_api/models_response.json b/mocked_api/models_response.json new file mode 100644 index 00000000..64122a7e --- /dev/null +++ b/mocked_api/models_response.json @@ -0,0 +1,1637 @@ +{ + "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": "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": "whisper-1", + "object": "model", + "created": 1677532384, + "owned_by": "openai-internal", + "permission": [ + { + "id": "modelperm-djnD3SGvfG9uvdu0Iz9Q66vO", + "object": "model_permission", + "created": 1679416530, + "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-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-curie-001", + "object": "model", + "created": 1649364043, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-8InhPV3CZfN3F5QHKoJd4zRD", + "object": "model_permission", + "created": 1679310997, + "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": "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": "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": "text-davinci-insert-001", + "object": "model", + "created": 1649880484, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-g4FksnxVDgVZYwrHLAqW0cUU", + "object": "model_permission", + "created": 1679353289, + "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": "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-embedding-ada-002", + "object": "model", + "created": 1671217299, + "owned_by": "openai-internal", + "permission": [ + { + "id": "modelperm-Dbv2FOgMdlDjO8py8vEjD5Mi", + "object": "model_permission", + "created": 1678892857, + "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": "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-Lmn4UDd83SEv3RPNGtEC3pBS", + "object": "model_permission", + "created": 1679353289, + "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": "code-davinci-002", + "object": "model", + "created": 1649880485, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-qVOtXhk3nqpGObWkmEpeLtqS", + "object": "model_permission", + "created": 1679082259, + "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": "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": "text-davinci-003", + "object": "model", + "created": 1669599635, + "owned_by": "openai-internal", + "permission": [ + { + "id": "modelperm-BptJFQovWB2rXq80ox1pVvza", + "object": "model_permission", + "created": 1679527838, + "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": "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": "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": "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": "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": "gpt-3.5-turbo-0301", + "object": "model", + "created": 1677649963, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-6hr9LCe55z5PSuZgN2IMRWaA", + "object": "model_permission", + "created": 1679529313, + "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": "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": "code-davinci-edit-001", + "object": "model", + "created": 1649880484, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-tJXJ7735l1wbCYaLtIMamDGe", + "object": "model_permission", + "created": 1679353400, + "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": "gpt-3.5-turbo", + "object": "model", + "created": 1677610602, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-DI1CytB5VtZGYOu2674ZTVbM", + "object": "model_permission", + "created": 1679529334, + "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": "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-davinci-edit-001", + "object": "model", + "created": 1649809179, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-3NeB0MQxtyng6zr1OyafQWsR", + "object": "model_permission", + "created": 1679353911, + "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": "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": "text-davinci-002", + "object": "model", + "created": 1649880484, + "owned_by": "openai", + "permission": [ + { + "id": "modelperm-l4EU6QlN1HcS0so0jU16kyg8", + "object": "model_permission", + "created": 1679355287, + "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": "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 + } + ] +} \ No newline at end of file