Get related questions
POST
/ai-doc/related-questionRequest URL
text
POST https://open-api.habitaxx.com/v1/ms-ai-fast/ai-doc/related-question1
Request headers
http
Authorization: Bearer <ACCESS_TOKEN>
Content-Type: application/json1
2
2
Request body
json
{
"session_id": "<SESSION_ID>",
"pet_profile_id": 44
}1
2
3
4
2
3
4
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
session_id | string | Yes | The session_id returned when the session was created. |
pet_profile_id | integer | No | Pet-profile ID; when omitted the profile bound to the session is used. If provided it must match the session. |
lang | string | No | Omit it or send the same language as the session, for example zh-CN. |
Response example
json
{
"code": 200,
"message": "success",
"data": {
"session_id": "<SESSION_ID>",
"data": {
"options": [
"伴有频繁舔舐下腹部或排尿困难、尿频",
"出现拉稀、软便或粪便中带有黏液血丝",
"近期有食欲废绝,甚至连最喜欢的罐头也不吃"
]
},
"raw_content": "模型原始输出",
"gateway_request_id": "<REQUEST_ID>"
}
}1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Response fields
Paths below are relative to the response data; data.xxx refers to a field of the nested inner data object. The inner content comes from the model, so no fields beyond this table are guaranteed.
| Field | Type | Description |
|---|---|---|
session_id | string | Current session ID. |
data.options | array | Related-symptom options: 3-5 complete sentences, each at most 30 Chinese characters and all distinct (array of strings). |
raw_content | string/null | Raw model output. Troubleshooting only. |
gateway_request_id | string/null | Gateway request ID. |