Pular para o conteúdo

Send Message Stream

POST
/api/v1/ai/chat/stream

Send a message with streaming response (SSE).

Returns Server-Sent Events with incremental response chunks.

Event types:

  • content: Text chunk from LLM
  • done: Final completion with stats
  • error: Error occurred
x-tenant-id
Any of:
integer
ChatRequest

Schema for chat request.

object
message
required
Message
string
>= 1 characters <= 10000 characters
conversation_id
Any of:
integer
assistant_id
required
Assistant Id
integer
context_type
Any of:
string
context_id
Any of:
integer
stream
Stream
boolean

Successful Response

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string