Gemini OpenAI compatible API list models returns 501 Unimplemented

The code from the docs to return list of models using the OpenAI compatible API returns 501 Unimplemented. I used the NodeJS code as-is from OpenAI compatibility  |  Gemini API  |  Google AI for Developers.

1 Like

Hi,

Welcome to the forum.

Yes, unfortunately since a few days it has been introduced.
Previously, it worked to retrieve the list of models.

Cheers.

PS: @Vishal as we spoke about.

1 Like

Hi @DavidD ,

I am able to run the openai.models.list API in the given example. It seems it is already fixed. Could you try this from your end to see if it is resolved for you? Thank You!!