API
Create chat message
Create a new conversation message or continue an existing dialogue.
Request Body
inputs
object
(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.
query
string
User input/question content
response_mode
string
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 (Server-Sent Events).
conversation_id
string
(Optional) Conversation ID: leave empty for first-time conversation; pass conversation_id from context to continue dialogue.
user
string
The user identifier, defined by the developer, must ensure uniqueness within the app.
blocking
streaming
Message terminal user feedback, like
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_id
string
Message ID
Request Body
rating
string
like or dislike, null is undo
user
string
The user identifier, defined by the developer, must ensure uniqueness within the app.
Get the chat history message
The first page returns the latest limit
bar, which is in reverse order.
Query
conversation_id
string
Conversation ID
first_id
string
ID of the first chat record on the current page. The default is none.
limit
int
How many chats are returned in one request
user
string
The user identifier, defined by the developer, must ensure uniqueness within the app.
Get conversation list
Gets the session list of the current user. By default, the last 20 sessions are returned.
Query
last_id
string
The ID of the last record on the current page, default none.
limit
int
How many chats are returned in one request
user
string
The user identifier, defined by the developer, must ensure uniqueness within the app.
Conversation renaming
Rename conversations; the name is displayed in multi-session client interfaces.
Request Body
name
string
New name
user
string
The user identifier, defined by the developer, must ensure uniqueness within the app.
Conversation deletion
Delete conversation.
Request Body
user
string
The user identifier, defined by the developer, must ensure uniqueness within the app.
Last updated