### 心理師 ```sql GET /api/getUserFactorScoreAndVideo NAME: 取得使用者七因子分數及影片資訊 URL: {url}/api/getUserFactorScoreAndVideo PARAMETERS: userName: String RETURN: STATUS: 200 OK Content Type: application/json JSON: { "factorScore": { "excitatory": int, "depression": int, "emotionalInstability": int, "ehilarated": int, "anxiety": int, "body": int, "familyCare": int, "familyAutonomy": int }, "videoURL": url } ``` ```sql GET /api/downloadVideo NAME: 下載影片資訊 URL: {url}/api/downloadVideo PARAMETERS: videoPath: String RETURN: STATUS: 200 OK Content Type: application/octet-stream Content: Binary stream of the video file ``` ### 心理師生成回應 ```sql POST /therapistChain/responseByQuery NAME: 心理師生成回應 URL: {url}/therapistChain/responseByQuery PARAMETERS: "query": String (必填, 問題, "今天心情有點糟") "model": String (非必填, 選擇 LLM 模型, "gemma2:27b"), "conv_id": String (非必填, 記錄對話歷史用, "52f42772-abef-4e76-881f-c487c0c473e6") RETURN: response: String status: "Successs" conv_id: "52f42772-abef-4e76-881f-c487c0c473e6" run_time: 21.82 ```