(sessionId, limit = 20)
| 136 | } |
| 137 | |
| 138 | static async getSessionHistory(sessionId, limit = 20) { |
| 139 | try { |
| 140 | const response = await axios.get(`${API_BASE_URL}/chat/sessions/${sessionId}/history`, { |
| 141 | params: { limit } |
| 142 | }); |
| 143 | return response.data; |
| 144 | } catch (error) { |
| 145 | console.error('获取会话历史失败:', error); |
| 146 | throw error; |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | static async getSessionSummary(sessionId) { |
| 151 | try { |
no test coverage detected