This endpoint is used to send a new chat message.
Args: chat_message_req (SendMessageRequest): Details about the new chat message.
Returns: StreamingResponse | ChatFullResponse: Either streams or returns complete response.
Authorization header with Bearer token
Origin of a chat message for telemetry tracking.
webapp, chrome_extension, api, slackbot, widget, unknown, unset A string of extra context injected into the LLM call for this request. The context is passed to the model but is not stored in the database and will not appear in the chat history. Use this to supply ephemeral, request-scoped information (e.g. the user's current page URL, session metadata, or any runtime context) without polluting the persistent conversation history. Pass null or omit the field to use no additional context.
Successful Response