Skip to main content
POST
/
api
/
v1
/
chat
/
{thread_id}
/
messages
/
stream
Create Chat Thread Message Streaming
curl --request POST \
  --url http://localhost:8000/api/v1/chat/{thread_id}/messages/stream \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "<string>",
  "content": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

thread_id
string
required

Body

application/json

The schema for creating an assistant's chat message.

role
string
required
content
string
required

Response

Successful Response