forked from microsoft/chat-copilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor ChatController for Asynchronous Plugin Registration (microso…
…ft#864) This commit introduces asynchronous registration of plugins in the ChatController. The changes improve the efficiency of the chat function by allowing multiple plugins to be registered concurrently. This enhancement is expected to improve response times and overall performance of the chat functionality. ### Motivation and Context 1. This change is required to improve the efficiency and performance of the chat functionality in the application. 2. The current synchronous registration of plugins in the ChatController can lead to slower response times. This change solves this problem by introducing asynchronous registration, allowing multiple plugins to be registered concurrently. 3. This contributes to the scenario where the application needs to handle multiple chat sessions simultaneously, each potentially requiring different sets of plugins. With the asynchronous registration, the application can now handle these scenarios more efficiently. 4. This change does not directly fix an open issue, but it is a proactive measure to enhance the application's performance and scalability. ### Description This edit is just a simple separation of registration of plugins [ JIRA - GRAPH - GITHUB - Custom plugins ] each one of them in a separate **Asynchronous** function and registering the enabled plugins simultaneously, as this process occurs each time a message is sent to chatbot. ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [Contribution Guidelines](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄
- Loading branch information
1 parent
b8b8556
commit 5956814
Showing
1 changed file
with
86 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters