Append saved response text¶
Append text to an existing modified_response.
POST https://api.moi.matrixorigin.cn/v5/workspaces/{workspace_id}/llm/sessions/{session_id}/messages/{message_id}/append-modified-response
Before you call this API¶
BASE_URL uses the product API prefix https://api.moi.matrixorigin.cn/v5. For a dedicated deployment, use its corresponding product API address.
Configure Workspace identity and variables in the same environment.
Request¶
curl --request POST \
"$BASE_URL/workspaces/$WORKSPACE_ID/llm/sessions/$SESSION_ID/messages/$MESSAGE_ID/append-modified-response" \
--header "X-API-Key: $MOI_KEY" \
--header "X-Workspace-ID: $WORKSPACE_ID" \
--header "Content-Type: application/json" \
--data-raw '{"append_content":" 补充内容"}'
Parameter |
Location |
Type |
Required |
Description |
|---|---|---|---|---|
|
Path |
string |
Yes |
Target Workspace, matching X-Workspace-ID. |
|
Path |
integer |
Yes |
Positive integer ID returned by this service. |
|
Path |
integer |
Yes |
Positive integer ID returned by this service. |
|
Body |
string |
No |
Text to append. Omitted/null/empty string appends an empty string. |
Appending starts from existing modified_response, not original response. No business request deduplication is provided. Read the message when the result is unknown rather than automatically repeating the same append.
Successful response¶
HTTP/1.1 204 No Content
HTTP 204 with no body. This operation returns no JSON data object.
Error response¶
Error formats and read scope explains differing identity, parameter, resource-read, and storage-failure outcomes.