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 several changes to the ChatApp.Server project, primarily focusing on the integration of Azure services and the OpenAI API. The main changes include the addition of Azure and OpenAI package references, creation of new classes and services related to chat completion and response handling, and the removal of the unused WeatherForecast class.
This pull request introduces several changes to the
ChatApp.Server
project, primarily focusing on the integration of Azure services and the OpenAI API. The main changes include the addition of Azure and OpenAI package references, creation of new classes and services related to chat completion and response handling, and the removal of the unusedWeatherForecast
class.Package references and configuration:
src/ChatApp/ChatApp.Server/ChatApp.Server.csproj
: Added package references forAzure.Identity
andMicrosoft.SemanticKernel
, and updated theSwashbuckle.AspNetCore
version.src/ChatApp/ChatApp.Server/appsettings.Development.json
: Added Azure and OpenAI configuration settings.New classes and services:
src/ChatApp/ChatApp.Server/Models/ResponseChoice.cs
: Created new classes for handling chat responses.src/ChatApp/ChatApp.Server/Services/AzureSearchService.cs
: Created a new service for querying Azure Search.src/ChatApp/ChatApp.Server/Services/ChatCompletionService.cs
: Created a new service for completing chats using the OpenAI API.src/ChatApp/ChatApp.Server/OpenAiExtensions.cs
: Created a new class for adding OpenAI services.Endpoint and main program changes:
src/ChatApp/ChatApp.Server/Endpoints.Api.cs
: Added a new endpoint for posting a conversation and imported necessary namespaces. [1] [2]src/ChatApp/ChatApp.Server/Program.cs
: Added OpenAI services to the main program.Removed class:
src/ChatApp/ChatApp.Server/WeatherForecast.cs
: Removed the unusedWeatherForecast
class.