How to integrate OpenAIClient.GetCompletionsStreamingAsync in MS Team Chatbot

Rajeesh M R 206 Reputation points
2023-06-29T12:52:41.7566667+00:00

The GetCompletionsStreamingAsync concept in Azure OpenAI is interesting, and I am uncertain about how to integrate it into an MS Team chatbot using C#. Presently, all send activities occur in a single method call within the bot framework. However, streaming involves a loop-like concept, allowing for sequential user responses. This feature could significantly enhance the user experience.

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,866 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,393 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChetanSharmamsft 1,026 Reputation points Microsoft Vendor
    2024-03-01T15:17:06.7133333+00:00

    Hello @Rajeesh M R - You can use Teams AI library to integrate Open AI related capability to your Teams application.

    Reference doc: https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/teams%20conversational%20ai/teams-conversation-ai-overview

    You can refer existing sample from this repo https://github.com/microsoft/teams-ai

    0 comments No comments