openai-php / client

⚡️ OpenAI PHP is a supercharged community-maintained PHP API client that allows you to interact with OpenAI API.
MIT License
4.82k stars 499 forks source link

Fixing an error in processing models list response values #233

Closed shcherbanich closed 11 months ago

shcherbanich commented 11 months ago

An error occurred while retrieving the list of models ($client->models()->list()). It turned out that the service stopped returning permission and root values. This PR fixes an error in processing these values.

ryanatearth commented 11 months ago

Great thanks! I saw something similar in a thread with a python library about not getting permissions anymore. How long do PRs usually take to get merged?

gehrisandro commented 11 months ago

@shcherbanich Thanks for your PR.

I am closing this one in favour of https://github.com/openai-php/client/pull/235

Going to merge this within the next hour.