mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-04-11 18:28:15 +00:00
wip: AI chat streaming endpoint + useChat integration (protocol mismatch)
- Server: POST /api/ai/stream using streamText with tools (lookup_patient, lookup_appointments, lookup_doctor) - Frontend: AiChatPanel rewritten with @ai-sdk/react useChat hook - Tool result cards: PatientCard, AppointmentCard, DoctorCard - Streaming works server-side but useChat v1 doesn't parse AI SDK v6 toTextStreamResponse format - Context panel layout needs redesign — context section fills entire panel, chat pushed below fold - TODO: Fix streaming protocol, redesign panel layout with collapsible context Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -153,7 +153,7 @@ export const TeamDashboardPage = () => {
|
||||
)}>
|
||||
{aiOpen && (
|
||||
<div className="flex h-full flex-col p-4">
|
||||
<AiChatPanel role="admin" />
|
||||
<AiChatPanel />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user