fix ChatCompletionResponse docs (#17534)

Signed-off-by: kenwoodjw <blackxin55+@gmail.com>
This commit is contained in:
kenwoodjw
2025-04-07 17:42:05 +08:00
committed by GitHub
parent 8ab9eb9857
commit 01704a4c1b
6 changed files with 30 additions and 1 deletions

View File

@@ -88,6 +88,9 @@ Chat applications support session persistence, allowing previous chat history to
### ChatCompletionResponse
Returns the complete App result, `Content-Type` is `application/json`.
- `event` (string) Event type, fixed to `message`
- `task_id` (string) Task ID, used for request tracking and the below Stop Generate API
- `id` (string) unique ID
- `message_id` (string) Unique message ID
- `conversation_id` (string) Conversation ID
- `mode` (string) App mode, fixed as `chat`
@@ -243,6 +246,8 @@ Chat applications support session persistence, allowing previous chat history to
```json {{ title: 'Response' }}
{
"event": "message",
"task_id": "c3800678-a077-43df-a102-53f23ed20b88",
"id": "9da23599-e713-473b-982c-4328d4f5c78a",
"message_id": "9da23599-e713-473b-982c-4328d4f5c78a",
"conversation_id": "45701982-8118-4bc5-8e9b-64562b4555f2",
"mode": "chat",