Skip to content

Stream AI Visit Summary via SSE (Gemini)#153

Merged
inteee merged 2 commits intoCIVRA-INC:mainfrom
zakkiyyat:gemini-ai
Mar 8, 2026
Merged

Stream AI Visit Summary via SSE (Gemini)#153
inteee merged 2 commits intoCIVRA-INC:mainfrom
zakkiyyat:gemini-ai

Conversation

@zakkiyyat
Copy link
Contributor

@zakkiyyat zakkiyyat commented Mar 6, 2026

Implements token-by-token streaming for AI visit summaries so doctors do not wait for a full response before seeing output.

Uses Server-Sent Events (SSE) with the Google Gemini streaming API to deliver partial responses to the frontend in real time.


Changes

  • Added stream.controller.ts in apps/api/src/modules/ai/
  • Integrated @google/generative-ai SDK
  • Created endpoint:

closes #120

Copy link
Contributor

@inteee inteee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update. I’ve reviewed the changes and everything looks good from my side.
Approved. Nice work!

@inteee inteee merged commit 8880595 into CIVRA-INC:main Mar 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gemini Streaming Summarization Service

2 participants