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>"
}
]
}Create a message in the chat thread with the given ID.
Args:
thread_id (str): The .thread_id of the chat thread
message (AssistantChatMessageCreateSchema): The message to create
approved_user (User): The current user
Returns: StreamingResponse: The created message as a stream
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>"
}
]
}The access token received from the authorization server in the OAuth 2.0 flow.
Successful Response