Handle Send Chat Message
Changed onThis endpoint is used to send a new chat message.
Args: chat_message_req (SendMessageRequest): Details about the new chat message. - When stream=True (default): Returns StreamingResponse with SSE - When stream=False: Returns ChatFullResponse with complete data request (Request): The current HTTP request context. user (User): The current user, obtained via dependency injection. _ (None): Rate limit check is run if user/group/global rate limits are enabled.
Returns: StreamingResponse | ChatFullResponse: Either streams or returns complete response.
Request
- Base URLhttps://cloud.onyx.app/api
- URLhttps://cloud.onyx.app/api/chat/send-chat-message
- AuthHTTP bearer
Request body
Response
If stream=true, returns text/event-stream. If stream=false, returns application/json (ChatFullResponse).
Changes
- breaking
removed the enum value
csvof the request property// - breaking
removed the enum value
requesttrackerof the request property//// - breaking
the response's body type changed from no type to
objectfor status - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
- info
added the new optional request property
- info
added the new
boxenum value to the request property//// - info
added the new
braintrustenum value to the request property//// - info
added the new
canvasenum value to the request property//// - info
added the new
craft_fileenum value to the request property//// - info
added the new
discordbotenum value to the request property - info
added the new
lumappsenum value to the request property//// - info
added the new
mobileenum value to the request property - info
added the new
tabularenum value to the request property// - info
added the media type
text/event-streamfor the response with the status - info
added the optional property
to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking
- info
added the new optional request property
- info