-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Description
Deployment name not setting with python api
I need to create a model deployment in my Azure Open AI workspace, specifically using openai.Deployment.create() python API. There is no clear spec on what needs to be passed in here, so I have not been able to get deployment name to set correctly.
I've tried setting the following params for setting it: name, deployment_name, deployment_id, openai_id, deployment, id
None seem to work - all set a generic default - I'm not sure if this functionality is broken or there is another param name.
openai.Deployment.create(model=completion_params["model_name"], name=completion_params["deployment_id"], scale_settings=scale_settings)
Currently, its been setting a random default Id:

Please help here with guidance.
To Reproduce
Run:
scale_settings = {
"scale_type": "standard",
}
openai.Deployment.create(model="text-chat-davinci-002", name="test-deployment-name", scale_settings=scale_settings)
Check AOAI workspace to see deployment name , and its not set to what I want
Code snippets
No response
OS
Windows
Python version
3.8.16
Library version
openai 0.27.6