{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# 模型\n", "\n", "列出并描述API中可用的各种模型" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## List models\n", " ``\n", " https://api.openai.com/v1/models\n", "``\n", "\n", "列出当前可用的模型,并提供关于每个模型的基本信息,例如所有者和可用性。\n" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "ename": "ZeroDivisionError", "evalue": "division by zero", "output_type": "error", "traceback": [ "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[1;31mZeroDivisionError\u001b[0m Traceback (most recent call last)", "\u001b[1;32me:\\GPTProject\\docs\\source\\examples\\openai-模型.ipynb Cell 3\u001b[0m in \u001b[0;36m\u001b[1;34m()\u001b[0m\n\u001b[1;32m----> 1\u001b[0m \u001b[39m1\u001b[39;49m\u001b[39m/\u001b[39;49m\u001b[39m0\u001b[39;49m\n", "\u001b[1;31mZeroDivisionError\u001b[0m: division by zero" ] } ], "source": [ "1/0\n", "## 让后面的代码不执行" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [ { "data": { "text/plain": [ " JSON: {\n", " \"data\": [\n", " {\n", " \"created\": 1649358449,\n", " \"id\": \"babbage\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1669085501,\n", " \"group\": null,\n", " \"id\": \"modelperm-49FUp5v084tBB49tC4z8LPH5\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"babbage\"\n", " },\n", " {\n", " \"created\": 1649359874,\n", " \"id\": \"davinci\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1669066355,\n", " \"group\": null,\n", " \"id\": \"modelperm-U6ZwlyAd0LyMk4rcMdz33Yc3\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"davinci\"\n", " },\n", " {\n", " \"created\": 1649809179,\n", " \"id\": \"text-davinci-edit-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1679934178,\n", " \"group\": null,\n", " \"id\": \"modelperm-otmQSS0hmabtVGHI9QB3bct3\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-davinci-edit-001\"\n", " },\n", " {\n", " \"created\": 1677649963,\n", " \"id\": \"gpt-3.5-turbo-0301\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1681938856,\n", " \"group\": null,\n", " \"id\": \"modelperm-yDCC5ePuUJKmUe3ld1q1pKvA\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"gpt-3.5-turbo-0301\"\n", " },\n", " {\n", " \"created\": 1651172509,\n", " \"id\": \"babbage-code-search-code\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669085863,\n", " \"group\": null,\n", " \"id\": \"modelperm-4qRnA3Hj8HIJbgo0cGbcmErn\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"babbage-code-search-code\"\n", " },\n", " {\n", " \"created\": 1651172505,\n", " \"id\": \"text-similarity-babbage-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669081947,\n", " \"group\": null,\n", " \"id\": \"modelperm-48kcCHhfzvnfY84OtJf5m8Cz\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-similarity-babbage-001\"\n", " },\n", " {\n", " \"created\": 1677610602,\n", " \"id\": \"gpt-3.5-turbo\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1681938917,\n", " \"group\": null,\n", " \"id\": \"modelperm-nH8mIzR6ChcOTZNawZgHl7yK\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"gpt-3.5-turbo\"\n", " },\n", " {\n", " \"created\": 1649880484,\n", " \"id\": \"code-davinci-edit-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1679934178,\n", " \"group\": null,\n", " \"id\": \"modelperm-Foe5Y4TvaKveYxt74oKMw8IB\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"code-davinci-edit-001\"\n", " },\n", " {\n", " \"created\": 1649364042,\n", " \"id\": \"text-davinci-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1669066355,\n", " \"group\": null,\n", " \"id\": \"modelperm-MVM5NfoRjXkDve3uQW3YZDDt\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-davinci-001\"\n", " },\n", " {\n", " \"created\": 1649357491,\n", " \"id\": \"ada\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1675997661,\n", " \"group\": null,\n", " \"id\": \"modelperm-u0nKN4ub7EVQudgMuvCuvDjc\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"ada\"\n", " },\n", " {\n", " \"created\": 1651172509,\n", " \"id\": \"babbage-code-search-text\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669085863,\n", " \"group\": null,\n", " \"id\": \"modelperm-Lftf8H4ZPDxNxVs0hHPJBUoe\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"babbage-code-search-text\"\n", " },\n", " {\n", " \"created\": 1651172505,\n", " \"id\": \"babbage-similarity\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669081947,\n", " \"group\": null,\n", " \"id\": \"modelperm-mS20lnPqhebTaFPrcCufyg7m\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"babbage-similarity\"\n", " },\n", " {\n", " \"created\": 1651172507,\n", " \"id\": \"code-search-babbage-text-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669085863,\n", " \"group\": null,\n", " \"id\": \"modelperm-EC5ASz4NLChtEV1Cwkmrwm57\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"code-search-babbage-text-001\"\n", " },\n", " {\n", " \"created\": 1649364043,\n", " \"id\": \"text-curie-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1679310997,\n", " \"group\": null,\n", " \"id\": \"modelperm-8InhPV3CZfN3F5QHKoJd4zRD\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-curie-001\"\n", " },\n", " {\n", " \"created\": 1677532384,\n", " \"id\": \"whisper-1\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-internal\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1680896832,\n", " \"group\": null,\n", " \"id\": \"modelperm-JdDYm8KjLd5xnGMGVlwX1UAp\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"whisper-1\"\n", " },\n", " {\n", " \"created\": 1651172507,\n", " \"id\": \"code-search-babbage-code-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669085864,\n", " \"group\": null,\n", " \"id\": \"modelperm-64LWHdlANgak2rHzc3K5Stt0\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"code-search-babbage-code-001\"\n", " },\n", " {\n", " \"created\": 1649364042,\n", " \"id\": \"text-ada-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1669088497,\n", " \"group\": null,\n", " \"id\": \"modelperm-KN5dRBCEW4az6gwcGXkRkMwK\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-ada-001\"\n", " },\n", " {\n", " \"created\": 1671217299,\n", " \"id\": \"text-embedding-ada-002\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-internal\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1678892857,\n", " \"group\": null,\n", " \"id\": \"modelperm-Dbv2FOgMdlDjO8py8vEjD5Mi\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-embedding-ada-002\"\n", " },\n", " {\n", " \"created\": 1651172505,\n", " \"id\": \"text-similarity-ada-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669092759,\n", " \"group\": null,\n", " \"id\": \"modelperm-DdCqkqmORpqxqdg4TkFRAgmw\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-similarity-ada-001\"\n", " },\n", " {\n", " \"created\": 1649364042,\n", " \"id\": \"curie-instruct-beta\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1680267269,\n", " \"group\": null,\n", " \"id\": \"modelperm-bsg59MlOi88CMf1MjnIKrT5a\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"curie-instruct-beta\"\n", " },\n", " {\n", " \"created\": 1651172505,\n", " \"id\": \"ada-code-search-code\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669087421,\n", " \"group\": null,\n", " \"id\": \"modelperm-wa8tg4Pi9QQNaWdjMTM8dkkx\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"ada-code-search-code\"\n", " },\n", " {\n", " \"created\": 1651172507,\n", " \"id\": \"ada-similarity\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669092759,\n", " \"group\": null,\n", " \"id\": \"modelperm-LtSIwCEReeDcvGTmM13gv6Fg\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"ada-similarity\"\n", " },\n", " {\n", " \"created\": 1669599635,\n", " \"id\": \"text-davinci-003\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-internal\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1681951445,\n", " \"group\": null,\n", " \"id\": \"modelperm-M7zNGmS2pe87HmlYCD0tFh0W\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-davinci-003\"\n", " },\n", " {\n", " \"created\": 1651172507,\n", " \"id\": \"code-search-ada-text-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669087421,\n", " \"group\": null,\n", " \"id\": \"modelperm-JBssaJSmbgvJfTkX71y71k2J\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"code-search-ada-text-001\"\n", " },\n", " {\n", " \"created\": 1651172505,\n", " \"id\": \"text-search-ada-query-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669092640,\n", " \"group\": null,\n", " \"id\": \"modelperm-1YiiBMYC8it0mpQCBK7t8uSP\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-search-ada-query-001\"\n", " },\n", " {\n", " \"created\": 1651172509,\n", " \"id\": \"davinci-search-document\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669066355,\n", " \"group\": null,\n", " \"id\": \"modelperm-M43LVJQRGxz6ode34ctLrCaG\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"davinci-search-document\"\n", " },\n", " {\n", " \"created\": 1651172510,\n", " \"id\": \"ada-code-search-text\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669087421,\n", " \"group\": null,\n", " \"id\": \"modelperm-kFc17wOI4d1FjZEaCqnk4Frg\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"ada-code-search-text\"\n", " },\n", " {\n", " \"created\": 1651172507,\n", " \"id\": \"text-search-ada-doc-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669092640,\n", " \"group\": null,\n", " \"id\": \"modelperm-kbHvYouDlkD78ehcmMOGdKpK\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-search-ada-doc-001\"\n", " },\n", " {\n", " \"created\": 1649364042,\n", " \"id\": \"davinci-instruct-beta\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1669066356,\n", " \"group\": null,\n", " \"id\": \"modelperm-k9kuMYlfd9nvFiJV2ug0NWws\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"davinci-instruct-beta\"\n", " },\n", " {\n", " \"created\": 1651172507,\n", " \"id\": \"text-similarity-curie-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669079883,\n", " \"group\": null,\n", " \"id\": \"modelperm-6dgTTyXrZE7d53Licw4hYkvd\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-similarity-curie-001\"\n", " },\n", " {\n", " \"created\": 1651172507,\n", " \"id\": \"code-search-ada-code-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669087421,\n", " \"group\": null,\n", " \"id\": \"modelperm-8soch45iiGvux5Fg1ORjdC4s\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"code-search-ada-code-001\"\n", " },\n", " {\n", " \"created\": 1651172505,\n", " \"id\": \"ada-search-query\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669092640,\n", " \"group\": null,\n", " \"id\": \"modelperm-b753xmIzAUkluQ1L20eDZLtQ\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"ada-search-query\"\n", " },\n", " {\n", " \"created\": 1651172505,\n", " \"id\": \"text-search-davinci-query-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669066353,\n", " \"group\": null,\n", " \"id\": \"modelperm-9McKbsEYSaDshU9M3bp6ejUb\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-search-davinci-query-001\"\n", " },\n", " {\n", " \"created\": 1651172509,\n", " \"id\": \"curie-search-query\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1677273417,\n", " \"group\": null,\n", " \"id\": \"modelperm-sIbfSwzVpVBtymQgOQSLBpxe\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"curie-search-query\"\n", " },\n", " {\n", " \"created\": 1651172505,\n", " \"id\": \"davinci-search-query\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669066353,\n", " \"group\": null,\n", " \"id\": \"modelperm-lYkiTZMmJMWm8jvkPx2duyHE\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"davinci-search-query\"\n", " },\n", " {\n", " \"created\": 1651172510,\n", " \"id\": \"babbage-search-document\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669084981,\n", " \"group\": null,\n", " \"id\": \"modelperm-5qFV9kxCRGKIXpBEP75chmp7\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"babbage-search-document\"\n", " },\n", " {\n", " \"created\": 1651172507,\n", " \"id\": \"ada-search-document\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669092640,\n", " \"group\": null,\n", " \"id\": \"modelperm-8qUMuMAbo4EwedbGamV7e9hq\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"ada-search-document\"\n", " },\n", " {\n", " \"created\": 1651172509,\n", " \"id\": \"text-search-curie-query-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1677273417,\n", " \"group\": null,\n", " \"id\": \"modelperm-Iion0NCpsXPNtIkQ0owQLi7V\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-search-curie-query-001\"\n", " },\n", " {\n", " \"created\": 1651172509,\n", " \"id\": \"text-search-babbage-doc-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669084981,\n", " \"group\": null,\n", " \"id\": \"modelperm-ao2r26P2Th7nhRFleHwy2gn5\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-search-babbage-doc-001\"\n", " },\n", " {\n", " \"created\": 1651172508,\n", " \"id\": \"curie-search-document\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1677273417,\n", " \"group\": null,\n", " \"id\": \"modelperm-LDsN5wW8eKVuh1OsyciHntE9\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"curie-search-document\"\n", " },\n", " {\n", " \"created\": 1651172509,\n", " \"id\": \"text-search-curie-doc-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1677273417,\n", " \"group\": null,\n", " \"id\": \"modelperm-taUGRSku7bQLa24SNIwYPEsi\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-search-curie-doc-001\"\n", " },\n", " {\n", " \"created\": 1651172509,\n", " \"id\": \"babbage-search-query\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669084981,\n", " \"group\": null,\n", " \"id\": \"modelperm-wSs1hMXDKsrcErlbN8HmzlLE\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"babbage-search-query\"\n", " },\n", " {\n", " \"created\": 1649364043,\n", " \"id\": \"text-babbage-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1675105935,\n", " \"group\": null,\n", " \"id\": \"modelperm-a3Ph5FIBbJxsoA4wvx7VYC7R\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-babbage-001\"\n", " },\n", " {\n", " \"created\": 1651172505,\n", " \"id\": \"text-search-davinci-doc-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669066353,\n", " \"group\": null,\n", " \"id\": \"modelperm-qhSf1j2MJMujcu3t7cHnF1DN\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-search-davinci-doc-001\"\n", " },\n", " {\n", " \"created\": 1651172509,\n", " \"id\": \"text-search-babbage-query-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669084981,\n", " \"group\": null,\n", " \"id\": \"modelperm-Kg70kkFxD93QQqsVe4Zw8vjc\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-search-babbage-query-001\"\n", " },\n", " {\n", " \"created\": 1651172510,\n", " \"id\": \"curie-similarity\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1675106290,\n", " \"group\": null,\n", " \"id\": \"modelperm-zhWKExSloaQiJgzjVHFmh2wR\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"curie-similarity\"\n", " },\n", " {\n", " \"created\": 1649359874,\n", " \"id\": \"curie\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1675106503,\n", " \"group\": null,\n", " \"id\": \"modelperm-oPaljeveTjEIDbhDjzFiyf4V\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"curie\"\n", " },\n", " {\n", " \"created\": 1651172505,\n", " \"id\": \"text-similarity-davinci-001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669066356,\n", " \"group\": null,\n", " \"id\": \"modelperm-OvmcfYoq5V9SF9xTYw1Oz6Ue\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-similarity-davinci-001\"\n", " },\n", " {\n", " \"created\": 1649880484,\n", " \"id\": \"text-davinci-002\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1679355287,\n", " \"group\": null,\n", " \"id\": \"modelperm-l4EU6QlN1HcS0so0jU16kyg8\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-davinci-002\"\n", " },\n", " {\n", " \"created\": 1651172509,\n", " \"id\": \"davinci-similarity\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-dev\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": true,\n", " \"allow_view\": true,\n", " \"created\": 1669066353,\n", " \"group\": null,\n", " \"id\": \"modelperm-lYYgng3LM0Y97HvB5CDc8no2\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"davinci-similarity\"\n", " },\n", " {\n", " \"created\": 1590625110,\n", " \"id\": \"cushman:2020-05-03\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"system\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": true,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1590625111,\n", " \"group\": null,\n", " \"id\": \"snapperm-FAup8P1KqclNlTsunLDRiesT\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"cushman:2020-05-03\"\n", " },\n", " {\n", " \"created\": 1607631625,\n", " \"id\": \"ada:2020-05-03\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"system\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1607631626,\n", " \"group\": null,\n", " \"id\": \"snapperm-9TYofAqUs54vytKYL0IX91rX\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"ada:2020-05-03\"\n", " },\n", " {\n", " \"created\": 1607632611,\n", " \"id\": \"babbage:2020-05-03\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"system\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1607632613,\n", " \"group\": null,\n", " \"id\": \"snapperm-jaLAcmyyNuaVmalCE1BGTGwf\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"babbage:2020-05-03\"\n", " },\n", " {\n", " \"created\": 1607632725,\n", " \"id\": \"curie:2020-05-03\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"system\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1607632727,\n", " \"group\": null,\n", " \"id\": \"snapperm-bt6R8PWbB2SwK5evFo0ZxSs4\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"curie:2020-05-03\"\n", " },\n", " {\n", " \"created\": 1607640163,\n", " \"id\": \"davinci:2020-05-03\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"system\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1607640164,\n", " \"group\": null,\n", " \"id\": \"snapperm-99cbfQTYDVeLkTYndX3UMpSr\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"davinci:2020-05-03\"\n", " },\n", " {\n", " \"created\": 1610745990,\n", " \"id\": \"if-davinci-v2\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1610746036,\n", " \"group\": null,\n", " \"id\": \"snapperm-58q0TdK2K4kMgL3MoHvGWMlH\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"if-davinci-v2\"\n", " },\n", " {\n", " \"created\": 1610745968,\n", " \"id\": \"if-curie-v2\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1610746043,\n", " \"group\": null,\n", " \"id\": \"snapperm-fwAseHVq6NGe6Ple6tKfzRSK\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"if-curie-v2\"\n", " },\n", " {\n", " \"created\": 1629420755,\n", " \"id\": \"if-davinci:3.0.0\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": true,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1629421809,\n", " \"group\": null,\n", " \"id\": \"snapperm-T53lssiyMWwiuJwhyO9ic53z\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"if-davinci:3.0.0\"\n", " },\n", " {\n", " \"created\": 1629498070,\n", " \"id\": \"davinci-if:3.0.0\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": true,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1629498084,\n", " \"group\": null,\n", " \"id\": \"snapperm-s6ZIAVMwlZwrLGGClTXqSK3Q\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"davinci-if:3.0.0\"\n", " },\n", " {\n", " \"created\": 1629501914,\n", " \"id\": \"davinci-instruct-beta:2.0.0\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": true,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1629501939,\n", " \"group\": null,\n", " \"id\": \"snapperm-c70U4TBfiOD839xptP5pJzyc\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"davinci-instruct-beta:2.0.0\"\n", " },\n", " {\n", " \"created\": 1641949608,\n", " \"id\": \"text-ada:001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"system\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1641949610,\n", " \"group\": null,\n", " \"id\": \"snapperm-d2PSnwFG1Yn9of6PvrrhkBcU\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-ada:001\"\n", " },\n", " {\n", " \"created\": 1641943966,\n", " \"id\": \"text-davinci:001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"system\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1641944340,\n", " \"group\": null,\n", " \"id\": \"snapperm-Fj1O3zkKXOQy6AkcfQXRKcWA\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-davinci:001\"\n", " },\n", " {\n", " \"created\": 1641955047,\n", " \"id\": \"text-curie:001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"system\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1641955123,\n", " \"group\": null,\n", " \"id\": \"snapperm-BI9TAT6SCj43JRsUb9CYadsz\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-curie:001\"\n", " },\n", " {\n", " \"created\": 1642018370,\n", " \"id\": \"text-babbage:001\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1642018480,\n", " \"group\": null,\n", " \"id\": \"snapperm-7oP3WFr9x7qf5xb3eZrVABAH\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-babbage:001\"\n", " }\n", " ],\n", " \"object\": \"list\"\n", "}" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Note: you need to be using OpenAI Python v0.27.0 for the code below to work\n", "import openai,os\n", "openai.api_key = os.getenv(\"OPENAI_API_KEY\")\n", "openai.Model.list()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Retrieve model\n", "``https://api.openai.com/v1/models/{model}``\n", "\n", " 获取模型实例,提供有关模型的基本信息,例如所有者和权限。" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [ { "data": { "text/plain": [ " JSON: {\n", " \"created\": 1669599635,\n", " \"id\": \"text-davinci-003\",\n", " \"object\": \"model\",\n", " \"owned_by\": \"openai-internal\",\n", " \"parent\": null,\n", " \"permission\": [\n", " {\n", " \"allow_create_engine\": false,\n", " \"allow_fine_tuning\": false,\n", " \"allow_logprobs\": true,\n", " \"allow_sampling\": true,\n", " \"allow_search_indices\": false,\n", " \"allow_view\": true,\n", " \"created\": 1681951445,\n", " \"group\": null,\n", " \"id\": \"modelperm-M7zNGmS2pe87HmlYCD0tFh0W\",\n", " \"is_blocking\": false,\n", " \"object\": \"model_permission\",\n", " \"organization\": \"*\"\n", " }\n", " ],\n", " \"root\": \"text-davinci-003\"\n", "}" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "openai.Model.retrieve(\"text-davinci-003\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 参数\n", "| Parameter | Type | Required | Description |\n", "|-----------|--------|----------|---------------------------------|\n", "| model | string | Required | 模型的名字 |" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3.10.4 64-bit", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.4" }, "vscode": { "interpreter": { "hash": "369f2c481f4da34e4445cda3fffd2e751bd1c4d706f27375911949ba6bb62e1c" } } }, "nbformat": 4, "nbformat_minor": 4 }