Method
addEmotionExample
(text, emotion, intensity)
Source from the content-addressed store, hash-verified
| 171 | } |
| 172 | |
| 173 | static async addEmotionExample(text, emotion, intensity) { |
| 174 | try { |
| 175 | const response = await axios.post(`${API_BASE_URL}/emotion-examples`, { |
| 176 | text, |
| 177 | emotion, |
| 178 | intensity |
| 179 | }); |
| 180 | return response.data; |
| 181 | } catch (error) { |
| 182 | console.error('添加情感示例失败:', error); |
| 183 | throw error; |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | static async getUserSessions(userId, limit = 50) { |
| 188 | try { |
Callers
nothing calls this directly
Tested by
no test coverage detected