Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sample using @microsoft/vscode-azext-azureauth to access a Azure Open AI deployment in Visual Studio Code #1745

Open
pelikhan opened this issue Jun 11, 2024 · 3 comments

Comments

@pelikhan
Copy link
Member

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 ?

@pelikhan
Copy link
Member Author

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

@alexweininger
Copy link
Member

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.

@pelikhan
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants