Open davidADSP opened 1 year ago
Hi @davidADSP - Thanks for your detailed bug report! Tagging the right people.
@azureml-github - Can you take a look?
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @armleads-azure @azureml-github @Azure/azure-ml-sdk.
Following this as I also ran into this error today running the Notebook file.
Bumping this as it is still occurring
@luigiw @paulshealy1 Is there a workaround to this issue ? I'm trying to run this notebook and hitting same issue.
+1, my team is seeing pipeline build failures with this on azureml-rag v0.2.26
Downgrading to 0.2.25
seems to work for some reason
Describe the bug A clear and concise description of what the bug is.
The
infer_deployment
function (from azureml.rag.utils.deployment import infer_deployment
) contains reference toDeployment.list
which isn't a valid method for theDeployment
class from theopenai
package.Digging into this a bit more - it's because there is no
/deployments
route here:https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/AzureOpenAI/authoring/preview/2023-07-01-preview/azureopenai.json or https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-07-01-preview/inference.json
However, there is a
/models
route.So for example, https://aoairesourcename.openai.azure.com/openai/models?api-version=2023-07-01-preview will work but https://aoairesourcename.openai.azure.com/openai/deployments?api-version=2023-07-01-preview will not.
To Reproduce Steps to reproduce the behavior:
This will always fail to retrieve any deployments
e.g. from here https://github.com/Azure/azureml-examples/blob/main/sdk/python/generative-ai/rag/notebooks/mlindex_with_testgen_autoprompt.ipynb
Expected behavior A list of deployments should be retrieved
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.