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 includes changes to the ChatApp application, which primarily involve refactoring the codebase to improve clarity and maintainability. The most significant changes include updating the runtime version and name in the appservice.bicep file, refactoring the ChatAppExtensions.cs file to simplify and optimize the code, and adding new methods to the Endpoints.History.cs file.
Runtime Changes:
infra/main.bicep: Updated the runtimeName and runtimeVersion from python and 3.10 to dotnet and 8 respectively.
Codebase Refactoring:
src/ChatApp/ChatApp.Server/ChatAppExtensions.cs: Simplified the code by removing the creation of DefaultAzureCredential instances in multiple places and replaced them with a single defaultAzureCreds instance. Also, refactored the CosmosClient creation process by utilizing CosmosClientBuilder. [1][2][3]
New Methods and Changes:
src/ChatApp/ChatApp.Server/Endpoints.History.cs: Added new methods like GenerateHistoryAsync, ListHistoryAsync, ReadHistoryAsync, and UpdateHistoryAsync. Also, fixed a condition in ListHistoryAsync that checks if the conversations list is empty. [1][2][3][4]
src/ChatApp/chatapp.client/src/api/api.ts, src/ChatApp/chatapp.client/src/pages/chat/Chat.tsx: Updated the code to use isHistoryEnabled instead of isCosmosDBAvailable to check if the history feature is enabled. [1][2][3][4][5][6][7]
This pull request includes changes to the
ChatApp
application, which primarily involve refactoring the codebase to improve clarity and maintainability. The most significant changes include updating the runtime version and name in theappservice.bicep
file, refactoring theChatAppExtensions.cs
file to simplify and optimize the code, and adding new methods to theEndpoints.History.cs
file.Runtime Changes:
infra/main.bicep
: Updated theruntimeName
andruntimeVersion
frompython
and3.10
todotnet
and8
respectively.Codebase Refactoring:
src/ChatApp/ChatApp.Server/ChatAppExtensions.cs
: Simplified the code by removing the creation ofDefaultAzureCredential
instances in multiple places and replaced them with a singledefaultAzureCreds
instance. Also, refactored theCosmosClient
creation process by utilizingCosmosClientBuilder
. [1] [2] [3]New Methods and Changes:
src/ChatApp/ChatApp.Server/Endpoints.History.cs
: Added new methods likeGenerateHistoryAsync
,ListHistoryAsync
,ReadHistoryAsync
, andUpdateHistoryAsync
. Also, fixed a condition inListHistoryAsync
that checks if the conversations list is empty. [1] [2] [3] [4]Minor Changes:
src/ChatApp/ChatApp.Server/Models/Conversation.cs
: Changed theId
property toconversation_id
in theConversation
andConversationRequest
classes. [1] [2]src/ChatApp/chatapp.client/src/api/api.ts
,src/ChatApp/chatapp.client/src/pages/chat/Chat.tsx
: Updated the code to useisHistoryEnabled
instead ofisCosmosDBAvailable
to check if the history feature is enabled. [1] [2] [3] [4] [5] [6] [7]