Skip to content

feat: Unified /v2/chat endpoint with SSE streaming, prompt caching & Redis consolidation#62

Open
vaibhav45sktech wants to merge 1 commit into
OpenAgriNet:mainfrom
vaibhav45sktech:fix
Open

feat: Unified /v2/chat endpoint with SSE streaming, prompt caching & Redis consolidation#62
vaibhav45sktech wants to merge 1 commit into
OpenAgriNet:mainfrom
vaibhav45sktech:fix

Conversation

@vaibhav45sktech
Copy link
Copy Markdown

Merges chat/voice into a single POST /api/v2/chat?channel=web|voice|whatsapp with proper SSE streaming (data: {...}\n\n), splits system prompts into static (cached) + dynamic (per-request) for ~50-80% LLM token savings, consolidates Redis into a shared client factory, and marks dead translation code as deprecated. v1 endpoint preserved for backward compat. 27 new tests passing.

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.

1 participant