Retrieve engine endpoint broken

hey all :wave:
while updating our gpts package (gpts - npm), i noticed that the retrieve engine endpoint (OpenAI API) is returning 404s…

i thought it was our lib for a moment but a simple curl command came back with an error, as well as the new(?) official node.js lib.

curl error yields:

{
  "error": {
    "message": "Engine not found",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}

tried
curl -u :key https://api.openai.com/v1/engines/curie
and
curl -u :key https://api.openai.com/v1/engines/text-similarity-davinci-001
but i assume all engines retrieves error out FYI.

1 Like

Hi @sc,

If you want to list all the available engines, use:

curl https://api.openai.com/v1/engines \ -H 'Authorization: Bearer YOUR_API_KEY'

Here’s docs.

@sps

i am familiar with the api, but i believe this part of it is broken at the moment. i’m not talk about listing the engines - i mean the retrieve engine endpoint described here: OpenAI API

let me know if you are able to retrieve any engine details. for example using:

curl https://api.openai.com/v1/engines/text-davinci-001 -H "Authorization: Bearer API_KEY"

or

curl -u :API_KEY https://api.openai.com/v1/engines/ada

Here’s the response with curl https://api.openai.com/v1/engines/text-davinci-001 -H "Authorization: Bearer API_KEY"

{
  "error": {
    "message": "Engine not found",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }

}
Andhere’s the response with curl https://api.openai.com/v1/engines \ -H 'Authorization: Bearer YOUR_API_KEY'

{
  "object": "list",
  "data": [
    {
      "object": "engine",
      "id": "ada",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "ada-code-search-code",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "ada-code-search-text",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "ada-instruct-beta",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "ada-search-document",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "ada-search-query",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "ada-similarity",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "babbage",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "babbage-code-search-code",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "babbage-code-search-text",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "babbage-instruct-beta",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "babbage-search-document",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "babbage-search-query",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "babbage-similarity",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "code-cushman-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "code-davinci-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "code-search-ada-code-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "code-search-ada-text-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "code-search-babbage-code-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "code-search-babbage-text-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "curie",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "curie-instruct-beta",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "curie-instruct-beta-v2",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "curie-search-document",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "curie-search-query",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "curie-similarity",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "cushman-codex",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "davinci",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "davinci-codex",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "davinci-instruct-beta",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "davinci-instruct-beta-v3",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "davinci-search-document",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "davinci-search-query",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "davinci-similarity",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "text-ada-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "text-babbage-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "text-curie-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "text-davinci-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "text-search-ada-doc-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "text-search-ada-query-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "text-search-babbage-doc-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "text-search-babbage-query-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "text-search-curie-doc-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "text-search-curie-query-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "text-search-davinci-doc-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "text-search-davinci-query-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "text-similarity-ada-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "text-similarity-babbage-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "text-similarity-curie-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    },
    {
      "object": "engine",
      "id": "text-similarity-davinci-001",
      "ready": true,
      "owner": "openai",
      "created": null,
      "permissions": null,
      "replicas": null,
      "max_replicas": null
    }
  ]
}

@sps

exactly.
the specific engine retrieve should return something like:


{
  "id": "text-davinci-001",
  "object": "engine",
  "owner": "openai",
  "ready": true
}

instead of the “Engine not found” response you noted.

just trying to point this out for whomever maintains the api. cheers.

2 Likes

Hey folks, thanks for reporting this breakage. We can confirm that we have found the bug.

We’ll be fixing and deploying shortly.

3 Likes