Hey, I've created my first AI Search instance, with AI Gateway where I added the OpenAI key. I've ad

Hey, I've created my first AI Search instance, with AI Gateway where I added the OpenAI key.
I've added my first document and I get an error while building embeddings during the sync.

I've chosen an OpenAI embedding model. The error I am getting is about missing token... It appears, AI Search is not using the token I have provided within the AI Gateway.
{
  "error": {
    "message": "You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}
Was this page helpful?