Getting a list of allowed model for specific API key #268
-
Hello, I'm not sure if this feature has already been developed, but considering the fact that using an endpoint with a model without the appropriate permission results in an error, it would be helpful to provide developers/users with the ability to run tests before calling the endpoint. This way, they can verify if their API Key supports GPT-4 or not. Another use case to consider is a developer managing multiple users, each with their own API keys and different permissions/models. Thank you for your attention. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use the OpenAIService::ListModel function to query the models you have access to. Hope this helps. |
Beta Was this translation helpful? Give feedback.
You can use the OpenAIService::ListModel function to query the models you have access to. Hope this helps.