Create a chat completion for a stored chat
POST/chats/:chatId/completions
Runs a completion using the AI provider and settings stored in the chat. Pass stream: true for SSE streaming. A system message in messages overrides the chat's stored system message for this call only. Messages may use documentId instead of content.
Request
Responses
- 200
- 400
- 401
- 404
Chat completion result (JSON or SSE stream)
Bad Request
Unauthorized
Chat or AI provider not found