MCPcopy Create free account
hub / github.com/congde/emotional_chat / addEmotionExample

Method addEmotionExample

frontend/src/services/ChatAPI.js:173–185  ·  view source on GitHub ↗
(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

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected