Skip to content

CopilotChat: Options pattern and best practices#588

Merged
adrianwyatt merged 38 commits intomicrosoft:mainfrom
adrianwyatt:options
Apr 25, 2023
Merged

CopilotChat: Options pattern and best practices#588
adrianwyatt merged 38 commits intomicrosoft:mainfrom
adrianwyatt:options

Conversation

@adrianwyatt
Copy link
Copy Markdown
Contributor

@adrianwyatt adrianwyatt commented Apr 21, 2023

Motivation and Context

Aligning CopilotChat further down the path of a reference application.

Description

  • Refactored configurations to use Options pattern as a best practice.
  • Moved to use Kestral appsettings for the endpoint and we now report the endpoint after the application starts, which will account for any configuration changes that may have occurred.
  • Moved web and service builder extensions to their own files to slim down Program.cs and make it easier to understand each set of extensions. This is mostly to separate out those extensions related to Semantic Kernel so developers can find those code sections more easily.
  • Renamed bot from "SK Chatbot" to "Copilot" to align with the project name.

@adrianwyatt adrianwyatt added the PR: in progress Under development and/or addressing feedback label Apr 21, 2023
@adrianwyatt adrianwyatt self-assigned this Apr 21, 2023
@adrianwyatt adrianwyatt added PR: ready for review All feedback addressed, ready for reviews .NET Issue or Pull requests regarding .NET code samples and removed PR: in progress Under development and/or addressing feedback labels Apr 21, 2023
@adrianwyatt adrianwyatt changed the title Options CopilotChat: Options pattern and best practices Apr 21, 2023
Comment thread samples/apps/copilot-chat-app/webapi/Config/AIServiceOptions.cs Outdated
Comment thread samples/apps/copilot-chat-app/webapi/Config/AIServiceOptions.cs
Comment thread samples/apps/copilot-chat-app/webapi/Config/AuthorizationOptions.cs Outdated
Comment thread samples/apps/copilot-chat-app/webapi/Config/AuthorizationOptions.cs Outdated
Comment thread samples/apps/copilot-chat-app/webapi/Config/AuthorizationOptions.cs Outdated
Comment thread samples/apps/copilot-chat-app/webapi/Config/AzureSpeechOptions.cs Outdated
Comment thread samples/apps/copilot-chat-app/webapi/Config/ServiceOptions.cs
Comment thread samples/apps/copilot-chat-app/webapi/ConfigurationExtensions.cs
Comment thread samples/apps/copilot-chat-app/webapi/Program.cs Outdated
Comment thread samples/apps/copilot-chat-app/webapi/Program.cs
@adrianwyatt adrianwyatt enabled auto-merge (squash) April 24, 2023 22:51
glahaye
glahaye previously approved these changes Apr 24, 2023
@adrianwyatt adrianwyatt removed the request for review from TaoChenOSU April 24, 2023 23:27
@adrianwyatt adrianwyatt disabled auto-merge April 24, 2023 23:28
glahaye
glahaye previously approved these changes Apr 24, 2023
TaoChenOSU
TaoChenOSU previously approved these changes Apr 24, 2023
Comment thread samples/apps/copilot-chat-app/README.md Outdated
Comment thread samples/apps/copilot-chat-app/webapi/Controllers/SemanticKernelController.cs Outdated
Comment thread samples/apps/copilot-chat-app/webapi/Controllers/SemanticKernelController.cs Outdated
Comment thread samples/apps/copilot-chat-app/webapi/Controllers/SpeechTokenController.cs Outdated
Comment thread samples/apps/copilot-chat-app/webapi/Skills/SemanticChatMemoryItem.cs Outdated
Comment thread samples/apps/copilot-chat-app/webapi/Skills/SemanticMemoryExtractor.cs Outdated
Comment thread samples/apps/copilot-chat-app/webapi/appsettings.json Outdated
@adrianwyatt adrianwyatt dismissed stale reviews from TaoChenOSU and glahaye via fe7214d April 25, 2023 00:05
@adrianwyatt adrianwyatt enabled auto-merge (squash) April 25, 2023 00:22
@adrianwyatt adrianwyatt merged commit bf823c5 into microsoft:main Apr 25, 2023
dluc pushed a commit that referenced this pull request Apr 29, 2023
### Motivation and Context
Aligning CopilotChat further down the path of a reference application.

### Description
- Refactored configurations to use Options pattern as a best practice.
- Moved to use Kestral appsettings for the endpoint and we now report
the endpoint after the application starts, which will account for any
configuration changes that may have occurred.
- Moved web and service builder extensions to their own files to slim
down `Program.cs` and make it easier to understand each set of
extensions. This is mostly to separate out those extensions related to
Semantic Kernel so developers can find those code sections more easily.
- Renamed bot from "SK Chatbot" to "Copilot" to align with the project
name.
@adrianwyatt adrianwyatt deleted the options branch May 4, 2023 00:31
dehoward pushed a commit to lemillermicrosoft/semantic-kernel that referenced this pull request Jun 1, 2023
### Motivation and Context
Aligning CopilotChat further down the path of a reference application.

### Description
- Refactored configurations to use Options pattern as a best practice.
- Moved to use Kestral appsettings for the endpoint and we now report
the endpoint after the application starts, which will account for any
configuration changes that may have occurred.
- Moved web and service builder extensions to their own files to slim
down `Program.cs` and make it easier to understand each set of
extensions. This is mostly to separate out those extensions related to
Semantic Kernel so developers can find those code sections more easily.
- Renamed bot from "SK Chatbot" to "Copilot" to align with the project
name.
golden-aries pushed a commit to golden-aries/semantic-kernel that referenced this pull request Oct 10, 2023
### Motivation and Context
Aligning CopilotChat further down the path of a reference application.

### Description
- Refactored configurations to use Options pattern as a best practice.
- Moved to use Kestral appsettings for the endpoint and we now report
the endpoint after the application starts, which will account for any
configuration changes that may have occurred.
- Moved web and service builder extensions to their own files to slim
down `Program.cs` and make it easier to understand each set of
extensions. This is mostly to separate out those extensions related to
Semantic Kernel so developers can find those code sections more easily.
- Renamed bot from "SK Chatbot" to "Copilot" to align with the project
name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: ready for review All feedback addressed, ready for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants