Named after a Mesopotamian reputed to know the cures to many incurable diseases. This is an accelerator for combining natural language queries and FHIR queries to assist medical research.
This pull request introduces significant changes to the ChatApp.Server project, primarily focusing on improving the configuration and dependency injection of various services. The changes also include the addition of several new model classes and updates to the appsettings.json file to accommodate these new models.
Key Changes:
Configuration and Dependency Injection Improvements:
src/ChatApp/ChatApp.Server/ChatAppExtensions.cs: A new method AddOptions is added to configure various options using IConfiguration and IServiceCollection. The AddChatAppServices method is also updated to use these configured options and to use DefaultAzureCredential for Azure services. The services are now registered as singletons instead of transient.
src/ChatApp/ChatApp.Server/appsettings.json: The appsettings.json file is updated to include new sections for AzureAdOptions, OpenAIOptions, AISearchOptions, and FrontendSettings. Some existing sections are also updated.
Minor Changes:
src/IndexOrchestration/Properties/serviceDependencies.json and src/IndexOrchestration/Properties/serviceDependencies.local.json: The secrets1 section is removed. [1][2]
This pull request introduces significant changes to the
ChatApp.Server
project, primarily focusing on improving the configuration and dependency injection of various services. The changes also include the addition of several new model classes and updates to theappsettings.json
file to accommodate these new models.Key Changes:
Configuration and Dependency Injection Improvements:
src/ChatApp/ChatApp.Server/ChatAppExtensions.cs
: A new methodAddOptions
is added to configure various options usingIConfiguration
andIServiceCollection
. TheAddChatAppServices
method is also updated to use these configured options and to useDefaultAzureCredential
for Azure services. The services are now registered as singletons instead of transient.src/ChatApp/ChatApp.Server/Program.cs
: TheMain
method is updated to use the newAddOptions
method for configuring options.src/ChatApp/ChatApp.Server/Endpoints.Api.cs
: TheMapApiEndpoints
method is updated to useIOptions<FrontendSettings>
for getting frontend settings.New Model Classes:
src/ChatApp/ChatApp.Server/Models/AISearchOptions.cs
: A new model classAISearchOptions
is added.src/ChatApp/ChatApp.Server/Models/AzureAdOptions.cs
: A new model classAzureAdOptions
is added.src/ChatApp/ChatApp.Server/Models/OpenAIOptions.cs
: A new model classOpenAIOptions
is added.Service Updates:
src/ChatApp/ChatApp.Server/Services/AzureSearchService.cs
: TheAzureSearchService
class is updated to useIOptions<AISearchOptions>
for getting AI search options. [1] [2] [3] [4]src/ChatApp/ChatApp.Server/Services/ChatCompletionService.cs
: TheChatCompletionService
class is updated to useIOptions<OpenAIOptions>
andIOptions<AzureAdOptions>
for getting OpenAI and Azure AD options respectively. [1] [2] [3]Configuration Updates:
src/ChatApp/ChatApp.Server/appsettings.json
: Theappsettings.json
file is updated to include new sections forAzureAdOptions
,OpenAIOptions
,AISearchOptions
, andFrontendSettings
. Some existing sections are also updated.Minor Changes:
src/IndexOrchestration/Properties/serviceDependencies.json
andsrc/IndexOrchestration/Properties/serviceDependencies.local.json
: Thesecrets1
section is removed. [1] [2]