Sends a user message and receives an AI-generated response. Set
stream: true to receive the response as Server-Sent Events (SSE).
Non-streaming: Returns the assistant message in the response body.
Streaming: Returns a text/event-stream with:
message.delta events containing { "content": "..." } fragmentsmessage.complete event with the full message and token usageerror event if something goes wrongPass your API key (prefixed cgk_) or a Supabase JWT in the
Authorization: Bearer <token> header.
Board UUID.
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Chat thread UUID.
"b2c3d4e5-f6a7-8901-bcde-f12345678901"