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

Method sendMessageWithAttachments

frontend/src/services/ChatAPI.js:21–33  ·  view source on GitHub ↗
(formData)

Source from the content-addressed store, hash-verified

19 }
20
21 static async sendMessageWithAttachments(formData) {
22 try {
23 const response = await axios.post(`${API_BASE_URL}/chat/with-attachments`, formData, {
24 headers: {
25 'Content-Type': 'multipart/form-data',
26 },
27 });
28 return response.data;
29 } catch (error) {
30 console.error('发送带附件的消息失败:', error);
31 throw error;
32 }
33 }
34
35 /**
36 * 流式发送消息(SSE),支持附件。

Callers

nothing calls this directly

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected