curl --request POST \
--url https://api.example.com/v1/chat/ \
--header 'Content-Type: application/json' \
--data '
{
"role": "<string>",
"content": "<string>",
"user_context": {
"id": 123,
"email": "<string>",
"updated_at": "<string>",
"is_active": true,
"team_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"connectors": [
{
"name": "<string>",
"id": [
123
]
}
],
"vector_store": {
"id": 123,
"index_name": "<string>",
"environment": "<string>",
"namespaces": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"provider": "<string>"
}
},
"timestamp": "<string>",
"chat_id": "<string>"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Answer a user question or prompt and stream the response
curl --request POST \
--url https://api.example.com/v1/chat/ \
--header 'Content-Type: application/json' \
--data '
{
"role": "<string>",
"content": "<string>",
"user_context": {
"id": 123,
"email": "<string>",
"updated_at": "<string>",
"is_active": true,
"team_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"connectors": [
{
"name": "<string>",
"id": [
123
]
}
],
"vector_store": {
"id": 123,
"index_name": "<string>",
"environment": "<string>",
"namespaces": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"provider": "<string>"
}
},
"timestamp": "<string>",
"chat_id": "<string>"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}