Commit graph

5 commits

Author SHA1 Message Date
2cb87538c4 fix 2026-03-06 10:13:13 -08:00
5a2172fb9d fix 2026-03-06 10:05:58 -08:00
8a61de15fa Add reasoning events and abort-aware finish reason to chat endpoint
Map thinking_start/delta/end to Vercel AI SDK reasoning-start/delta/end
chunk types. Derive finish reason from enqueueMessage result - aborted
sessions get a clean finish with reason "error" instead of an error chunk.
2026-03-06 01:25:22 -08:00
f83648c5c5 Add Vercel AI SDK v5+ chat endpoint with text streaming
New POST /sessions/:key/chat endpoint that speaks the Vercel AI SDK
UI message SSE protocol (x-vercel-ai-ui-message-stream: v1). Accepts
both useChat format ({ messages: UIMessage[] }) and simple gateway
format ({ text: string }). Streams text-start, text-delta, text-end
events through the existing session infrastructure.
2026-03-06 01:17:51 -08:00
9a0b848789 new gateway 2026-03-05 18:58:27 -08:00