diff --git a/.prettierrc b/.prettierrc index dcb7279..4b9a2d9 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,4 +1,5 @@ { + "printWidth": 120, "singleQuote": true, "trailingComma": "all" -} \ No newline at end of file +} diff --git a/README.en-US.md b/README.en-US.md index eeb6d1a..91218b0 100644 --- a/README.en-US.md +++ b/README.en-US.md @@ -17,10 +17,10 @@ You must have an Azure OpenAI account to use the Azure OpenAI Proxy. 2. Clone the code in the command line window. 3. Run `npm install` to install dependencies. 4. Run `npm start` to start the application. -5. Run the script below for testing, replacing `YOUR_RESOURCE_ID`, `YOUR_MODEL_DEPLOYMENT`, and `YOUR_API_KEY` before running it. +5. Run the script below for testing, replacing `YOUR_RESOURCE_ID`, `YOUR_MODEL_DEPLOYMENT`, and `YOUR_API_KEY` before running it, `AZURE_API_VERSION` is optional and the default value is 2023-03-15-preview.. ```bash curl -X "POST" "http://localhost:3000/v1/chat/completions" \ --H 'Authorization: YOUR_RESOURCE_ID:YOUR_MODEL_DEPLOYMENT:YOUR_API_KEY' \ +-H 'Authorization: YOUR_RESOURCE_ID:YOUR_MODEL_DEPLOYMENT:YOUR_API_KEY:AZURE_API_VERSION' \ -H 'Content-Type: application/json; charset=utf-8' \ -d $'{ "messages": [ @@ -59,7 +59,7 @@ Q: How do I support GPT-4? A: To use GPT-4, please use key format as follows: -`YOUR_RESOURCE_ID:gpt-3.5-turbo|YOUR_MODEL_DEPLOYMENT,gpt-4|YOUR_MODEL_DEPLOYMENT,gpt-4-32k|YOUR_MODEL_DEPLOYMENT:YOUR_API_KEY` +`YOUR_RESOURCE_ID:gpt-3.5-turbo|YOUR_MODEL_DEPLOYMENT,gpt-4|YOUR_MODEL_DEPLOYMENT,gpt-4-32k|YOUR_MODEL_DEPLOYMENT:YOUR_API_KEY:AZURE_API_VERSION` # How To Contribute Code? diff --git a/README.md b/README.md index af60186..acd7527 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,10 @@ 2. 克隆代码到命令行窗口。 3. 运行 `npm install` 安装依赖项。 4. 运行 `npm start` 启动应用程序。 -5. 运行下面脚本测试,运行前需要把`YOUR_RESOURCE_ID`,`YOUR_MODEL_DEPLOYMENT`,`YOUR_API_KEY`替换。 +5. 运行下面脚本测试,运行前需要把`YOUR_RESOURCE_ID`,`YOUR_MODEL_DEPLOYMENT`,`YOUR_API_KEY`, `AZURE_API_VERSION`替换,`AZURE_API_VERSION`参数可选,目前默认是2023-03-15-preview。 ```bash curl -X "POST" "http://localhost:3000/v1/chat/completions" \ --H 'Authorization: YOUR_RESOURCE_ID:YOUR_MODEL_DEPLOYMENT:YOUR_API_KEY' \ +-H 'Authorization: YOUR_RESOURCE_ID:YOUR_MODEL_DEPLOYMENT:YOUR_API_KEY:AZURE_API_VERSION' \ -H 'Content-Type: application/json; charset=utf-8' \ -d $'{ "messages": [ @@ -59,7 +59,7 @@ Q: 如何支持GPT-4 A: 要使用GPT-4,请使用下列格式的key: -`YOUR_RESOURCE_ID:gpt-3.5-turbo|YOUR_MODEL_DEPLOYMENT,gpt-4|YOUR_MODEL_DEPLOYMENT,gpt-4-32k|YOUR_MODEL_DEPLOYMENT:YOUR_API_KEY` +`YOUR_RESOURCE_ID:gpt-3.5-turbo|YOUR_MODEL_DEPLOYMENT,gpt-4|YOUR_MODEL_DEPLOYMENT,gpt-4-32k|YOUR_MODEL_DEPLOYMENT:YOUR_API_KEY:AZURE_API_VERSION` # 贡献代码方式 diff --git a/src/app.controller.ts b/src/app.controller.ts index dcfe056..e888fd4 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -1,4 +1,4 @@ -import { Controller, Get, Post, Req, Res } from '@nestjs/common'; +import { Controller, Get, Logger, Post, Req, Res } from '@nestjs/common'; import { AxiosHeaders } from 'axios'; import { Request, Response } from 'express'; import { AppService } from './app.service'; @@ -13,8 +13,11 @@ export class AppController { } } +const DEFAULT_API_VERSION = '2023-03-15-preview'; + @Controller('chat') export class ChatController { + private readonly logger = new Logger(ChatController.name); constructor(private readonly appService: AppService) {} @Get() @@ -26,7 +29,10 @@ export class ChatController { async completions(@Req() request: Request, @Res() res: Response) { const auth = request.headers['authorization']; const apiKey = auth.replace('Bearer ', ''); - const [resource_id, deployment_id, azureApiKey] = apiKey.split(':'); + const [resource_id, deployment_id, azureApiKey, apiVersion] = apiKey.split(':'); + this.logger.debug( + `resource_id: ${resource_id}, deployment_id: ${deployment_id}, azureApiKey: ${azureApiKey}, apiVersion: ${apiVersion}`, + ); const endpoint = `https://${resource_id}.openai.azure.com`; const stream = request.body['stream']; const response = await this.appService.getCompletions( @@ -35,6 +41,7 @@ export class ChatController { azureApiKey, request.body, stream, + apiVersion || DEFAULT_API_VERSION, ); // set response headers diff --git a/src/app.service.ts b/src/app.service.ts index b7bc9c3..2367fa7 100644 --- a/src/app.service.ts +++ b/src/app.service.ts @@ -23,10 +23,11 @@ export class AppService { azureApiKey: string, body: any, stream: boolean, + apiVersion: string, ) { const deployment_id = this.getDeploymentId(mapping, body['model']); this.logger.debug(`deployment_id: ${deployment_id}`); - const url = `${endpoint}/openai/deployments/${deployment_id}/chat/completions?api-version=2023-03-15-preview`; + const url = `${endpoint}/openai/deployments/${deployment_id}/chat/completions?api-version=${apiVersion}`; const headers = { 'api-key': azureApiKey, 'Content-Type': 'application/json', @@ -46,14 +47,12 @@ export class AppService { this.logger.debug(`mapping: ${mapping}, model: ${model}`); if (mapping.includes(',')) { let defaultDeploymentId = ''; - const modelMapping = mapping - .split(',') - .reduce((acc: Record, pair: string) => { - const [key, value] = pair.split('|'); - if (defaultDeploymentId === '') defaultDeploymentId = value; - acc[key] = value; - return acc; - }, {}); + const modelMapping = mapping.split(',').reduce((acc: Record, pair: string) => { + const [key, value] = pair.split('|'); + if (defaultDeploymentId === '') defaultDeploymentId = value; + acc[key] = value; + return acc; + }, {}); if (!model) { return defaultDeploymentId; } diff --git a/src/main.ts b/src/main.ts index 4226ba2..514d6dc 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,7 +3,7 @@ import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule, { - logger: ['log'], + logger: ['debug'], }); app.setGlobalPrefix('v1'); await app.listen(3000); diff --git a/src/models.ts b/src/models.ts index 68bc5ec..10fe530 100644 --- a/src/models.ts +++ b/src/models.ts @@ -1,1541 +1,1541 @@ export let models = { - "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": "text-davinci-edit-001", - "object": "model", - "created": 1649809179, - "owned_by": "openai", - "permission": [ - { - "id": "modelperm-otmQSS0hmabtVGHI9QB3bct3", - "object": "model_permission", - "created": 1679934178, - "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": "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": "code-davinci-edit-001", - "object": "model", - "created": 1649880484, - "owned_by": "openai", - "permission": [ - { - "id": "modelperm-Foe5Y4TvaKveYxt74oKMw8IB", - "object": "model_permission", - "created": 1679934178, - "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": "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-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-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": "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": "gpt-3.5-turbo-0301", - "object": "model", - "created": 1677649963, - "owned_by": "openai", - "permission": [ - { - "id": "modelperm-vrvwsIOWpZCbya4ceX3Kj4qw", - "object": "model_permission", - "created": 1679602087, - "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": "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", - "object": "model", - "created": 1677610602, - "owned_by": "openai", - "permission": [ - { - "id": "modelperm-M56FXnG1AsIr3SXq8BYPvXJA", - "object": "model_permission", - "created": 1679602088, - "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": "curie-search-document", - "object": "model", - "created": 1651172508, - "owned_by": "openai-dev", - "permission": [ - { - "id": "modelperm-LDsN5wW8eKVuh1OsyciHntE9", - "object": "model_permission", - "created": 1677273417, - "allow_create_engine": false, - "allow_sampling": true, - "allow_logprobs": true, - "allow_search_indices": true, - "allow_view": true, - "allow_fine_tuning": false, - "organization": "*", - "group": null, - "is_blocking": false - } - ], - "root": "curie-search-document", - "parent": null - }, - { - "id": "text-search-curie-doc-001", - "object": "model", - "created": 1651172509, - "owned_by": "openai-dev", - "permission": [ - { - "id": "modelperm-taUGRSku7bQLa24SNIwYPEsi", - "object": "model_permission", - "created": 1677273417, - "allow_create_engine": false, - "allow_sampling": true, - "allow_logprobs": true, - "allow_search_indices": true, - "allow_view": true, - "allow_fine_tuning": false, - "organization": "*", - "group": null, - "is_blocking": false - } - ], - "root": "text-search-curie-doc-001", - "parent": null - }, - { - "id": "babbage-search-query", - "object": "model", - "created": 1651172509, - "owned_by": "openai-dev", - "permission": [ - { - "id": "modelperm-wSs1hMXDKsrcErlbN8HmzlLE", - "object": "model_permission", - "created": 1669084981, - "allow_create_engine": false, - "allow_sampling": true, - "allow_logprobs": true, - "allow_search_indices": true, - "allow_view": true, - "allow_fine_tuning": false, - "organization": "*", - "group": null, - "is_blocking": false - } - ], - "root": "babbage-search-query", - "parent": null - }, - { - "id": "text-babbage-001", - "object": "model", - "created": 1649364043, - "owned_by": "openai", - "permission": [ - { - "id": "modelperm-a3Ph5FIBbJxsoA4wvx7VYC7R", - "object": "model_permission", - "created": 1675105935, - "allow_create_engine": false, - "allow_sampling": true, - "allow_logprobs": true, - "allow_search_indices": false, - "allow_view": true, - "allow_fine_tuning": false, - "organization": "*", - "group": null, - "is_blocking": false - } - ], - "root": "text-babbage-001", - "parent": null - }, - { - "id": "text-search-davinci-doc-001", - "object": "model", - "created": 1651172505, - "owned_by": "openai-dev", - "permission": [ - { - "id": "modelperm-qhSf1j2MJMujcu3t7cHnF1DN", - "object": "model_permission", - "created": 1669066353, - "allow_create_engine": false, - "allow_sampling": true, - "allow_logprobs": true, - "allow_search_indices": true, - "allow_view": true, - "allow_fine_tuning": false, - "organization": "*", - "group": null, - "is_blocking": false - } - ], - "root": "text-search-davinci-doc-001", - "parent": null - }, - { - "id": "text-search-babbage-query-001", - "object": "model", - "created": 1651172509, - "owned_by": "openai-dev", - "permission": [ - { - "id": "modelperm-Kg70kkFxD93QQqsVe4Zw8vjc", - "object": "model_permission", - "created": 1669084981, - "allow_create_engine": false, - "allow_sampling": true, - "allow_logprobs": true, - "allow_search_indices": true, - "allow_view": true, - "allow_fine_tuning": false, - "organization": "*", - "group": null, - "is_blocking": false - } - ], - "root": "text-search-babbage-query-001", - "parent": null - }, - { - "id": "curie-similarity", - "object": "model", - "created": 1651172510, - "owned_by": "openai-dev", - "permission": [ - { - "id": "modelperm-zhWKExSloaQiJgzjVHFmh2wR", - "object": "model_permission", - "created": 1675106290, - "allow_create_engine": false, - "allow_sampling": true, - "allow_logprobs": true, - "allow_search_indices": true, - "allow_view": true, - "allow_fine_tuning": false, - "organization": "*", - "group": null, - "is_blocking": false - } - ], - "root": "curie-similarity", - "parent": null - }, - { - "id": "curie", - "object": "model", - "created": 1649359874, - "owned_by": "openai", - "permission": [ - { - "id": "modelperm-oPaljeveTjEIDbhDjzFiyf4V", - "object": "model_permission", - "created": 1675106503, - "allow_create_engine": false, - "allow_sampling": true, - "allow_logprobs": true, - "allow_search_indices": false, - "allow_view": true, - "allow_fine_tuning": false, - "organization": "*", - "group": null, - "is_blocking": false - } - ], - "root": "curie", - "parent": null - }, - { - "id": "text-similarity-davinci-001", - "object": "model", - "created": 1651172505, - "owned_by": "openai-dev", - "permission": [ - { - "id": "modelperm-OvmcfYoq5V9SF9xTYw1Oz6Ue", - "object": "model_permission", - "created": 1669066356, - "allow_create_engine": false, - "allow_sampling": true, - "allow_logprobs": true, - "allow_search_indices": true, - "allow_view": true, - "allow_fine_tuning": false, - "organization": "*", - "group": null, - "is_blocking": false - } - ], - "root": "text-similarity-davinci-001", - "parent": null - }, - { - "id": "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 - } - ] -} + 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: 'text-davinci-edit-001', + object: 'model', + created: 1649809179, + owned_by: 'openai', + permission: [ + { + id: 'modelperm-otmQSS0hmabtVGHI9QB3bct3', + object: 'model_permission', + created: 1679934178, + 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: '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: 'code-davinci-edit-001', + object: 'model', + created: 1649880484, + owned_by: 'openai', + permission: [ + { + id: 'modelperm-Foe5Y4TvaKveYxt74oKMw8IB', + object: 'model_permission', + created: 1679934178, + 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: '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-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-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: '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: 'gpt-3.5-turbo-0301', + object: 'model', + created: 1677649963, + owned_by: 'openai', + permission: [ + { + id: 'modelperm-vrvwsIOWpZCbya4ceX3Kj4qw', + object: 'model_permission', + created: 1679602087, + 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: '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', + object: 'model', + created: 1677610602, + owned_by: 'openai', + permission: [ + { + id: 'modelperm-M56FXnG1AsIr3SXq8BYPvXJA', + object: 'model_permission', + created: 1679602088, + 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: 'curie-search-document', + object: 'model', + created: 1651172508, + owned_by: 'openai-dev', + permission: [ + { + id: 'modelperm-LDsN5wW8eKVuh1OsyciHntE9', + object: 'model_permission', + created: 1677273417, + allow_create_engine: false, + allow_sampling: true, + allow_logprobs: true, + allow_search_indices: true, + allow_view: true, + allow_fine_tuning: false, + organization: '*', + group: null, + is_blocking: false, + }, + ], + root: 'curie-search-document', + parent: null, + }, + { + id: 'text-search-curie-doc-001', + object: 'model', + created: 1651172509, + owned_by: 'openai-dev', + permission: [ + { + id: 'modelperm-taUGRSku7bQLa24SNIwYPEsi', + object: 'model_permission', + created: 1677273417, + allow_create_engine: false, + allow_sampling: true, + allow_logprobs: true, + allow_search_indices: true, + allow_view: true, + allow_fine_tuning: false, + organization: '*', + group: null, + is_blocking: false, + }, + ], + root: 'text-search-curie-doc-001', + parent: null, + }, + { + id: 'babbage-search-query', + object: 'model', + created: 1651172509, + owned_by: 'openai-dev', + permission: [ + { + id: 'modelperm-wSs1hMXDKsrcErlbN8HmzlLE', + object: 'model_permission', + created: 1669084981, + allow_create_engine: false, + allow_sampling: true, + allow_logprobs: true, + allow_search_indices: true, + allow_view: true, + allow_fine_tuning: false, + organization: '*', + group: null, + is_blocking: false, + }, + ], + root: 'babbage-search-query', + parent: null, + }, + { + id: 'text-babbage-001', + object: 'model', + created: 1649364043, + owned_by: 'openai', + permission: [ + { + id: 'modelperm-a3Ph5FIBbJxsoA4wvx7VYC7R', + object: 'model_permission', + created: 1675105935, + allow_create_engine: false, + allow_sampling: true, + allow_logprobs: true, + allow_search_indices: false, + allow_view: true, + allow_fine_tuning: false, + organization: '*', + group: null, + is_blocking: false, + }, + ], + root: 'text-babbage-001', + parent: null, + }, + { + id: 'text-search-davinci-doc-001', + object: 'model', + created: 1651172505, + owned_by: 'openai-dev', + permission: [ + { + id: 'modelperm-qhSf1j2MJMujcu3t7cHnF1DN', + object: 'model_permission', + created: 1669066353, + allow_create_engine: false, + allow_sampling: true, + allow_logprobs: true, + allow_search_indices: true, + allow_view: true, + allow_fine_tuning: false, + organization: '*', + group: null, + is_blocking: false, + }, + ], + root: 'text-search-davinci-doc-001', + parent: null, + }, + { + id: 'text-search-babbage-query-001', + object: 'model', + created: 1651172509, + owned_by: 'openai-dev', + permission: [ + { + id: 'modelperm-Kg70kkFxD93QQqsVe4Zw8vjc', + object: 'model_permission', + created: 1669084981, + allow_create_engine: false, + allow_sampling: true, + allow_logprobs: true, + allow_search_indices: true, + allow_view: true, + allow_fine_tuning: false, + organization: '*', + group: null, + is_blocking: false, + }, + ], + root: 'text-search-babbage-query-001', + parent: null, + }, + { + id: 'curie-similarity', + object: 'model', + created: 1651172510, + owned_by: 'openai-dev', + permission: [ + { + id: 'modelperm-zhWKExSloaQiJgzjVHFmh2wR', + object: 'model_permission', + created: 1675106290, + allow_create_engine: false, + allow_sampling: true, + allow_logprobs: true, + allow_search_indices: true, + allow_view: true, + allow_fine_tuning: false, + organization: '*', + group: null, + is_blocking: false, + }, + ], + root: 'curie-similarity', + parent: null, + }, + { + id: 'curie', + object: 'model', + created: 1649359874, + owned_by: 'openai', + permission: [ + { + id: 'modelperm-oPaljeveTjEIDbhDjzFiyf4V', + object: 'model_permission', + created: 1675106503, + allow_create_engine: false, + allow_sampling: true, + allow_logprobs: true, + allow_search_indices: false, + allow_view: true, + allow_fine_tuning: false, + organization: '*', + group: null, + is_blocking: false, + }, + ], + root: 'curie', + parent: null, + }, + { + id: 'text-similarity-davinci-001', + object: 'model', + created: 1651172505, + owned_by: 'openai-dev', + permission: [ + { + id: 'modelperm-OvmcfYoq5V9SF9xTYw1Oz6Ue', + object: 'model_permission', + created: 1669066356, + allow_create_engine: false, + allow_sampling: true, + allow_logprobs: true, + allow_search_indices: true, + allow_view: true, + allow_fine_tuning: false, + organization: '*', + group: null, + is_blocking: false, + }, + ], + root: 'text-similarity-davinci-001', + parent: null, + }, + { + id: '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, + }, + ], +}; diff --git a/test/app.e2e-spec.ts b/test/app.e2e-spec.ts index 50cda62..1a013be 100644 --- a/test/app.e2e-spec.ts +++ b/test/app.e2e-spec.ts @@ -16,9 +16,6 @@ describe('AppController (e2e)', () => { }); it('/ (GET)', () => { - return request(app.getHttpServer()) - .get('/') - .expect(200) - .expect('Hello World!'); + return request(app.getHttpServer()).get('/').expect(200).expect('Hello World!'); }); });