Create a new conversation message or continue an existing dialogue.
Request Body
inputsobject
(Optional) Provide user input fields as key-value pairs, corresponding to variables in Prompt Eng. Key is the variable name, Value is the parameter value. If the field type is Select, the submitted Value must be one of the preset choices.
querystring
User input/question content
response_modestring
Blocking type, waiting for execution to complete and returning results. (Requests may be interrupted if the process is long)
streaming returns. Implementation of streaming return based on SSE ().
conversation_idstring
(Optional) Conversation ID: leave empty for first-time conversation; pass conversation_id from context to continue dialogue.
userstring
The user identifier, defined by the developer, must ensure uniqueness within the app.
{
"answer": "Hi, is there anything I can help you?",
"conversation_id": "45701982-8118-4bc5-8e9b-64562b4555f2",
"created_at": 1679587005,
"id": "059f87d9-15c0-473a-870c-fde95cdcc1e4"}
Rate received messages on behalf of end-users with likes or dislikes. This data is visible in the Logs & Annotations page and used for future model fine-tuning.
Path Params
message_idstring
Message ID
Request Body
ratingstring
like or dislike, null is undo
userstring
The user identifier, defined by the developer, must ensure uniqueness within the app.