OpenAI list models returns HTTP 401

Hi,
the new OpenAI compatible endpoint https://generativelanguage.googleapis.com/v1beta/openai/models returns an HTTP 401 Unauthorized only instead of the expected list of available models.

GET https://generativelanguage.googleapis.com/v1beta/openai/models
Authorization: Bearer {{apiKey}}

See https://platform.openai.com/docs/api-reference/models/list for reference and expected response.

FYI, I’m using the same REST calls for chat completions and embeddings sucessfully. The information about this new endpoint is based on the $discovery response - revision 20241127

Anyone with further information? Thanks.

1 Like

Encountered the same problem