Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
bdbf1d1
Add assistant urls and views
sahilds1 Aug 18, 2025
674c8c3
Add docstrings and minor formatting improvements for code clarity
sahilds1 Aug 18, 2025
15c3e64
Merge branch 'listOfMed' into 345-add-rag-to-the-chatbot
sahilds1 Aug 18, 2025
1e71158
Update balancer_backend/urls.py
sahilds1 Aug 18, 2025
3342224
Fix typo in balancer_backend urls
sahilds1 Aug 18, 2025
fef2899
Improve logging, documentation, and response handling in assistant vi…
sahilds1 Aug 18, 2025
4376600
change debug logs to info logs for better visibility in production
sahilds1 Aug 19, 2025
ad099de
Add cost metrics and duration logging
sahilds1 Aug 19, 2025
6161f5f
Change root logging level from DEBUG to INFO
sahilds1 Aug 19, 2025
67e06b5
Merge branch 'listOfMed' into 345-add-rag-to-the-chatbot
sahilds1 Aug 19, 2025
c90e95e
Update Docker Compose configuration for PostgreSQL and frontend services
sahilds1 Aug 20, 2025
ff13ad4
Update reasoning effort level and improve final response logging
sahilds1 Aug 20, 2025
e6d66a2
Simpler stateless chat interface that focuses on document-based assis…
sahilds1 Aug 20, 2025
2b5af3a
Simplify message rendering and update citation format in views
sahilds1 Aug 21, 2025
da4dacc
Restore files that only have linting changes
sahilds1 Aug 21, 2025
261634c
Restore files that had changes for local dev
sahilds1 Aug 21, 2025
5c3185f
Revert "Restore files that had changes for local dev"
sahilds1 Aug 21, 2025
9e8040d
Add HIPPA Compliance and PHI Disclaimer
sahilds1 Aug 25, 2025
1d5a1f7
Add conversation management to the Chat component using session storage
sahilds1 Aug 25, 2025
6f1161c
Prevent the “re-save after logout” behavior
sahilds1 Aug 25, 2025
fa35396
Remove line from the disclosure
sahilds1 Aug 26, 2025
980cbdc
Merge branch 'listOfMed' into 345-add-rag-to-the-chatbot
sahilds1 Sep 2, 2025
c2da354
Restore docker-compose.yml
sahilds1 Sep 2, 2025
839a924
Logging configuration
sahilds1 Sep 2, 2025
871706f
Linting and formating
sahilds1 Sep 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion frontend/src/api/apiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,20 @@ const updateConversationTitle = async (
}
};

// Assistant API functions
const sendAssistantMessage = async (message: string, previousResponseId?: string) => {
try {
const response = await api.post(`/v1/api/assistant`, {
message,
previous_response_id: previousResponseId,
});
return response.data;
} catch (error) {
console.error("Error(s) during sendAssistantMessage: ", error);
throw error;
}
};

export {
handleSubmitFeedback,
handleSendDrugSummary,
Expand All @@ -279,5 +293,6 @@ export {
updateConversationTitle,
handleSendDrugSummaryStream,
handleSendDrugSummaryStreamLegacy,
fetchRiskDataWithSources
fetchRiskDataWithSources,
sendAssistantMessage
};
Loading