Open pelikhan opened 3 months ago
It turns out that scopes are ignored in getToken
(https://github.com/microsoft/vscode-azuretools/blob/main/auth/src/VSCodeAzureSubscriptionProvider.ts#L248) and there is no way to provide the required scopews in the constructor to access an AOAI instance
Ignoring the scopes is a known issue, we don't have a great solution for it yet unfortunately.
What scopes do you need to access an AOAI instance? Are you creating a new extension? Feel free to reach out to me on Teams/email if you'd like to sync.
For now, I suggest using the VS Code authentication API until I can understand your use case better.
Yes we are adding support to genaiscript.
The scopes are at https://github.com/microsoft/genaiscript/blob/main/packages/core/src/constants.ts#L8-L11
Is there a sample that shows how to successfully make a chat completion request to a Azure Open AI deployment from Visual Studio Code and using VSCodeAzureSubscriptionProvider ?