{
"messages": [
{
"role": "user",
"content": "甲方是谁?"
}
],
"responseMode": "blocking",
"conversationId": "",
"title": "hi"
}curl --location --request POST 'http://prod-cn.your-api-server.com/consoleapi/v1/chat' \
--header 'Authorization: Bearer ak_2e52e4e2de63b8f8015213f56974e2bd' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"messages": [
{
"role": "user",
"content": "甲方是谁?"
}
],
"responseMode": "blocking",
"conversationId": "",
"title": "hi"
}'{
"conversationId": "string",
"response": "string",
"responseTime": 0,
"tokenUsage": {
"totalTokens": 0,
"promptTokens": 0,
"completionTokens": 0
},
"suggestions": [
null
],
"referenceSources": [
{
"datasetId": "string",
"datasetName": "string",
"chunks": [
{
"id": "string",
"documentId": "string",
"content": "string",
"score": 0,
"metadata": {
"fileId": "string",
"fileUrl": "string",
"fileName": "string",
"filePath": "string",
"fileSize": "string",
"fileType": "string",
"mimeType": "string",
"extension": "string",
"storageName": "string"
},
"chunkIndex": 0,
"contentLength": 0,
"fileName": "string"
}
]
}
]
}