Using a different server compared to location of openapi.yaml spec

Hi all,

Can the API URL be different from where openapi.yaml is hosted?

I would like to host the ai-plugin.json and api manifest on a public URL, and have the API call instead a localhost:PORT_NUMBER/api URL. This is the error I get when using as the server URL in openapi.json: None of the provided servers is under the root origin localhost:3001. Server URL localhost:3002 is not under the root origin localhost:3001; ignoring it.

So, to summarize:

  • ai-plugin.json and openapi.json at PUBLIC_URL
  • API calls happening on the URL localhost:PORT_NUMBER

Is that possible or an intentional limitation?