Model
API doesn't retrieve Azure OpenAI deployments
#920
Replies: 4 comments 7 replies
-
cc @pamelafox |
Beta Was this translation helpful? Give feedback.
-
Any updates on this? |
Beta Was this translation helpful? Give feedback.
-
Sorry for delay, was just making sure I had the right answer. I believe you need to use this SDK for listing deployments: You'd initialize with this: And then looks like the method to list deployments: It might require more filtering to get OpenAI specific deployments. I haven't used this particular API myself. Background: For Azure resources, we generally distinguish between the "control plane" and the "data plane", where the control plane does stuff like create new Azure resources and the data plane actually uses those resources. In this case, the control plane is taken care of by azure-mgmt-cognitiveservices and the data plane by the openai package. I've passed feedback onto the team that this is not a clear developer experience. |
Beta Was this translation helpful? Give feedback.
-
@rattrayalex / @mspronesti Could you please let us know what you plan to do with the models (/deployments) returned once listed using this SDK? As in what is your overarching use case/job to be done to list this? Fine tuning or something else? |
Beta Was this translation helpful? Give feedback.
-
OpenAI version: 1.3.7
Python version: 3.10
I'm trying to access the deployments associated with a specific Azure OpenAI subscription as follows
However this returns a list of all the models available, not those I deployed (with their specific deployment name).
How can I achieve the desired outcome? Thanks in advance :)
Beta Was this translation helpful? Give feedback.
All reactions