pub async fn generate_stream(
__arg0: State<UnifiedAppState>,
__arg1: Json<StreamChatRequest>,
) -> ResponseExpand description
POST /generate/stream — Main streaming chat endpoint
- Validates request and gets/creates session in shared memory
- Persists user message to database
- Streams LLM response back via SSE
- Persists assistant response to database after completion