{
"modelId": "92c498e8-a192-48e8-a0ad-34fe43a87ab1",
// "conversationId": "3c9e3a4f-c9bf-41d3-a908-19a958d1d322", // 如果需要继续对话则传
"messages": [
{
"role": "user",
"content": "今日热点"
}
],
"mcpServers": ["f79349fb-a4e4-475b-ab64-d3062f0276d9"]
}
curl --location --request POST 'http://prod-cn.your-api-server.com/api/ai-chat' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"modelId": "92c498e8-a192-48e8-a0ad-34fe43a87ab1",
// "conversationId": "3c9e3a4f-c9bf-41d3-a908-19a958d1d322", // 如果需要继续对话则传
"messages": [
{
"role": "user",
"content": "今日热点"
}
],
"mcpServers": ["f79349fb-a4e4-475b-ab64-d3062f0276d9"]
}'{
"code": 0,
"message": "string",
"data": {
"id": "string",
"message": {
"role": "string",
"content": "string"
},
"finishReason": "string",
"model": "string",
"usage": {
"promptTokens": 0,
"completionTokens": 0,
"totalTokens": 0
},
"created": 0
},
"timestamp": 0
}