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

Problem with Azure OpenAI chatbot on your own data and Teams Toolkit #12904

Open
AlexS640 opened this issue Dec 11, 2024 · 5 comments
Open

Problem with Azure OpenAI chatbot on your own data and Teams Toolkit #12904

AlexS640 opened this issue Dec 11, 2024 · 5 comments
Assignees
Labels

Comments

@AlexS640
Copy link

Describe the bug
I am using Azure Open AI Studio to generate an AI chatbot 'on your own data' and trying to deploy it as a Teams app (see link). When I run the chatbot locally with the Teams Toolkit in Visual Studio Code (with 'Debug in Test Tool' configuration), it works fine. However, after provisioning, deploying and publishing it to our Azure Cloud tenant, the respective Azure Bot does not work. When I go to 'Settings -> Test in Web Chat' in the respective Azure resource and input a message, nothing happens. When looking at 'Settings -> Channels -> Web Chat', I can see a number of issues:
image
Also when I manually import the resulting .zip file in my local 'appPackage/build' directory into Teams as an app, I obtain no answers. I think, it could be the same problem there.

To Reproduce
Steps to reproduce the behavior:

  1. Follow the steps specified in link
    to deploy your 'Azure OpenAI chatbot on your own data' as a Teams app.
  2. Go to the Azure portal, where the Azure bot is deployed, and select the respective resource.
  3. Go to 'Test in Web Chat' and input a message.
  4. Error: No answer is generated.
  5. Go to 'Channels' and look for issues in the 'Web Chat' channel.

Expected behavior
I expect an answer, when using the 'Test in Web Chat' functionality.

Screenshots
image

VS Code Extension Information (please complete the following information):

  • OS: Windows
  • Version 5.10.1

CLI Information (please complete the following information):

  • OS: Windows 10
  • Version 22H2
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Dec 11, 2024
@Prasad-MSFT
Copy link

Prasad-MSFT commented Dec 12, 2024

Hi @AlexS640, thanks for raising your issue. Does this issue happen only with 'Web Chat', or does it happen in 'Teams chat' as well? The error message "HTTP status code Unauthorized" typically indicates that there is a problem with the bot's credentials or configuration. Could you please double-check that the bot is configured with the correct values for the app ID and password? These values should match the ones specified in the Azure Bot Service configuration. Sometimes, the issue might be due to missing or incorrect values in the bot's configuration settings.

@AlexS640
Copy link
Author

Hi @Prasad-MSFT, thank you for your reply. It also happens in the Teams chat. The bot type is 'User-assigned Managed Identity' which was automatically configured during the Azure cloud deployment step, so I think there is no app password. I also followed the guidlines to give the respective managed identity the 'Cognitive Service OpenAI user' role on the resource group hosting the underlying Azure OpenAI service.

@blackchoey blackchoey removed the needs attention This issue needs the attention of a contributor. label Dec 16, 2024
@Prasad-MSFT
Copy link

Hi @AlexS640, please share repro video of your issue along with bot id and timestamp of failure, so that we can raise a bug for this issue.

@AlexS640
Copy link
Author

Hi @Prasad-MSFT, unfortunately I cannot share a repro video here, because it could potentially contain confidential data. Is there another possibility?

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Dec 18, 2024
@blackchoey blackchoey removed the needs attention This issue needs the attention of a contributor. label Dec 19, 2024
@Prasad-MSFT
Copy link

@AlexS640 You can share it via [email protected]

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

No branches or pull requests

4 participants