Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.23k stars 4.58k forks source link

What is the URI/URL for Embeddings with AzureOpenAI #37323

Closed securigy closed 1 year ago

securigy commented 1 year ago

Library name and version

Azure.AI.OpenAI 1.0.0-beta.5

Query/Question

In the examples 1 through 5: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/openai/Azure.AI.OpenAI/tests/Samples/Sample01_Chatbot.cs

URL is a placeholder: "https://myaccount.openai.azure.com/" What is "myaccount"? Azure Resource Name? Subscription Name?

This Url is used for completions and chat. What would be URL for Embeddings? Is the following correct? https://{resourceName}.openai.azure.com/openai/deployments/{deploymentId}/embeddings?api-version={apiVersion} (It took it from somewhere on MS sites, and it might be for Semantic Kernel case, or HttpClient) So what is Embeddings URL for AzureOpenAI?

Is there any example for Embeddings?

Environment

Win11 .NET 7 VS2022 17.5.4 Azure.AI.OpenAI 1.0.0-beta.5

github-actions[bot] commented 1 year ago

Thank you for your feedback. This has been routed to the support team for assistance.

SaurabhSharma-MSFT commented 1 year ago

@securigy "myaccount" will be the resource name of the Open AI service. You can refer to this document to get the embeddings using the Open AI Endpoint. Thanks.

github-actions[bot] commented 1 year ago

Hi @securigy. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.

github-actions[bot] commented 1 year ago

Hi @securigy, since you haven’t asked that we /unresolve the issue, we’ll close this out. If you believe further discussion is needed, please add a comment /unresolve to reopen the issue.